description

# escape method Null safety

String escape (

1. String text

)

Returns a regular expression that matches `text`.

If `text` contains characters that are meaningful in regular expressions, the resulting regular expression will match those characters literally. If `text` contains no characters that have special meaning in a regular expression, it is returned unmodified.

The characters that have special meaning in regular expressions are: `(`, `)`, `[`, `]`, `{`, `}`, `*`, `+`, `?`, `.`, `^`, `$`, `|` and `\`.

## Implementation

    external static String escape(String text);