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

lembacon/VSRegularExpression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A JavaScript-compatible RegExp for Objective-C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published