Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Latest commit

 

History

History
20 lines (13 loc) · 1006 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 1006 Bytes

VSRegularExpression

VSRegularExpression is a JavaScript-compatible (with some limitations and known issues) Regular Expression implementation written in C++ with Objective-C encapsulation similar to NSRegularExpression.

This whole thing is written purely for fun, though you can still use it when the input is not too large and you know what you are doing.

(The RegExp engine written in C++ is named jscre. Though I soon realized that the V8's port of pcre was also named jscre, I'm too lazy to give it another name.)

Limitations and Known Issues

  • Extremely poor performance.
  • Always return the longest possible match.
  • UTF-16 surrogate pairs are not well-handled.
  • Backreference is not supported.
  • Non-greedy quantification is not supported.
  • Only ASCII characters are considered when using either case insensitive or word boundary.

License

VSRegularExpression is licensed under MIT License.