Skip to content

Updated nrex with new features

Rafał Mikrut requested to merge github/fork/leezh/nrex-update into master

Created by: leezh

More updates incoming from https://github.com/leezh/nrex

  • Added support for POSIX character classes [[:alnum:]]
  • Added lookahead (?=)(?!) and lookbehind (?<=)(?<!) support
  • Added ASCII \xFF and Unicode \uFFFF code points (in a style similar to Python)
  • Added word boundary support \b\B
  • Limited capture groups and back-references to 9 by default (for backwards compatibility)
  • Quantifiers now use recursive functions. nrex::match() is now pure stack memory.
  • Remembered to update the license in README.md to the newer zlib license

I've only tested the lib against the spec, so please do double check this with proper real-world scenarios.

Continues discussion from https://github.com/okamstudio/godot/pull/2300

Merge request reports