Skip to main content

Regex.compile

Regex.compileexpressioncase_insensitive

Documentation

Compile the provided expression into a Regex that can be used for matching. For details on Enso's Regex syntax, see the Help Documentation.

Arguments

  • expression: The text representing the regular expression that you want to compile. Must be non-empty.
  • case_insensitive: Enables or disables case-insensitive matching. Case insensitive matching behaves as if it normalises the case of all input text before matching on it.

Errors

  • If an empty regex is used, find throws an Illegal_Argument error.