setLiteral

setLiteral(enable: Boolean): JadeRegexPattern;

This method returns its own modified receiver, to allow call chaining. (By default, enclosed characters are not treated as literals.)

Call the setLiteral method of the JadeRegexPattern class with the enable parameter set to true to specify that all meta (enclosed) characters in the pattern (for example, "u") are disabled and are treated as literal values.

Matching literal strings with a regular expression engine is not the most efficient way of doing it. If you are doing a lot of literal matching and are concerned about efficiency, consider using other approaches.

2020.0.01 and higher