Details
Description
Regex literals should support options as in JavaScript and other languages (non-literal on Perl and Python) :
e.g:
/ok/i.IsMatch("OK") //case-insensitive regex => it matches
Valid options :
- g - Global (no-op on .NET)
- i - Ignore case
- m - Multi line
- s - Single line (dot includes \n)
- x - ignore pattern whitespace (and allow comments)
- l - locale-aware (no-op on .NET, since (l)ocale-aware by default)
- n - culture-(n)eutral [boo-specific]
- c - compiled regex [boo-specific]
- e - explicit capture [boo-specific]
Activity
Cedric Vivier
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
Regex literals should support options as in JavaScript and other languages (non-literal on Perl and Python) : e.g: {code} /ok/i.IsMatch("OK") //case-insensitive regex {code} Valid options would be: g - Global (no-op on .NET) i - Ignore case m - Multi line s - Single line (dot includes \n) x - ignore pattern whitespace (and allow comments) l - locale-aware (no-op on .NET, since (l)ocale-aware by default) and 3 boo/.net specific options: n - culture-(n)eutral c - compiled regex e - explicit capture |
Regex literals should support options as in JavaScript and other languages (non-literal on Perl and Python) : e.g: {code} /ok/i.IsMatch("OK") //case-insensitive regex => it matches {code} Valid options : - g - Global (no-op on .NET) - i - Ignore case - m - Multi line - s - Single line (dot includes \n) - x - ignore pattern whitespace (and allow comments) - l - locale-aware (no-op on .NET, since (l)ocale-aware by default) - n - culture-(n)eutral [boo-specific] - c - compiled regex [boo-specific] - e - explicit capture [boo-specific] |
Cedric Vivier
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |