mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-regexp: update README for x flag support
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -36,6 +36,7 @@ simulation) with backtracking fallback.
|
||||
|
||||
- `i` (`Regexp::IGNORECASE`) case-insensitive matching (ASCII)
|
||||
- `m` (`Regexp::MULTILINE`) `.` matches newline; `^`/`$` match at line boundaries
|
||||
- `x` (`Regexp::EXTENDED`) free-spacing mode; unescaped whitespace ignored, `#` starts comments
|
||||
|
||||
### Ruby API
|
||||
|
||||
@@ -104,8 +105,6 @@ pattern analysis.
|
||||
- **No lookbehind**: `(?<=...)` and `(?<!...)` are not supported.
|
||||
- **No Unicode properties**: `\p{Alpha}`, `\p{L}`, etc. are not
|
||||
supported.
|
||||
- **No extended mode**: The `x` flag (free-spacing mode) is not
|
||||
supported.
|
||||
- **ASCII case folding only**: The `i` flag handles ASCII letters
|
||||
only.
|
||||
- **Step limit on backtracking**: Patterns that require the
|
||||
|
||||
Reference in New Issue
Block a user