|
It supports flags and named capture groups.
Here are some key features of "regex":
· Atomic grouping
· Possessive quantifiers.
· Scoped flags
· Inline flags
· Repeated repeats
· Definition of 'word' character
· Groups in lookahead and lookbehind
· Variable-length lookbehind
· Correct handling of charset with ignore case flag
· Unmatched group in replacement
· 'Pathological' patterns
· Flags argument for regex.split, regex.sub and regex.subn
· 'Overlapped' argument for regex.findall and regex.finditer
· Unicode escapes
· Large patterns
· Zero-width match with regex.finditer
· Zero-width split with regex.split
· Splititer
· Subscripting for groups
· Named groups
· Group references
· Named characters
· Unicode codepoint properties, blocks and scripts
· Posix character classes
· Search anchor
· Reverse searching
· Multithreading
· Matching a single grapheme
· Branch reset
· The scoped flags are: WORD, IGNORECASE, MULTILINE, DOTALL, VERBOSE.
· The global flags are: ASCII, LOCALE, REVERSE, UNICODE, ZEROWIDTH.
Via: regex 0.1.20121031
0 Comment:
Post a Comment