regex 2014.11.14

A complex Python module created as an alternative to Python's built-in "re", a function for regular expression matching and manipulation
The regex module is still in its incipient stages of development.

Nevertheless, it still outdoes and outclasses the default "re" module by a long shot.

While the original "re" module was focused on porting similar functionality found in Perl, regex also ports regular expression manipulation techniques found in other programming languages as well.

The core of the module is actually made of two parts, one for supporting original "re" features, and one for implementing the new regex functions.

Main features:

  • 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.

last updated on:
November 14th, 2014, 12:50 GMT
price:
FREE!
developed by:
Matthew Barnett
homepage:
code.google.com
license type:

Python Software Foundation License

operating system(s):
Windows / Linux / Mac OS / BSD / Solaris
category:
C: \ Programming Tools

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT