Options for Haskell Regular Expressions
Regular expressions can have options (also known as flags) that modify their behavior. Each engine supports a different set of options.
Option | Description | Backend value | Portable value |
---|
ignorecase | Case insensitive (caseSensitive == False) | ignorecase | (not portable) |
multiline | ^ and $ match EOL (multiline) | multiline | (not portable) |
rightAssoc | Right associative (rightAssoc) | rightAssoc | (not portable) |
newSyntax | Add the extended non-POSIX syntax (tdfa only, newSyntax) | newSyntax | (not portable) |
lastStarGreedy | Last star is greedy (tdfa only, lastStarGreedy) | lastStarGreedy | (not portable) |