XRegExp 0.5: JavaScript regex library

XRegExp is a JavaScript library that provides an augmented, cross-browser implementation of regular expressions, including support for additional modifiers and syntax. Several convenience methods and a new, powerful recursive-construct parser that uses regex delimiters are also included.

Here's the feature list:

  • Added regex syntax:
    • Comprehensive named capture support.
    • Comment patterns: (?#…).
  • Added regex modifiers (flags):
    • s (singleline), to make dot match all characters including newlines.
    • x (extended), for free-spacing and comments.
  • Added awesome:
    • Reduced cross-browser inconsistencies.
    • Recursive-construct parser with regex delimiters.
    • An easy way to cache and reuse regex objects.
    • The ability to safely embed literal text in your regex patterns.
    • A method to add modifiers to existing regex objects.
    • Regex call and apply methods, which make generically working with functions and regexes easier.

All of this can be yours for the low, low price of 2.4 KB. :-) Version 0.5 also introduces extensive documentation and code examples. Get it while it's hot! XRegExp: JavaScript regular expression library.

Sponsor
Published 21 April 08 05:32 by Stevezilla00

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
(optional)
(required) 
Enter the code you see below