Flagrant Badassery

A JavaScript and regular expression centric blog

All Posts Tagged With: "xregexp"

XRegExp 0.5 Released!

If you haven't seen the prior versions, XRegExp is an MIT-licensed 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 what you get beyond the standard JavaScript regex features: Added regex [...]

Read More

Safari Support with XRegExp 0.2.2

When I released XRegExp 0.2 several days ago, I hadn't yet tested in Safari or Swift. When I remembered to do this shortly afterwards, I found that both of those WebKit-based browsers didn't like it and often crashed when trying to use it! This was obviously a Very Bad Thing, but due to major time [...]

Read More

XRegExp 0.2: Now With Named Capture

Update: This version of XRegExp is outdated. See XRegExp 0.5 for the latest, greatest version. JavaScript's regular expression flavor doesn't support named capture. Well, says who? XRegExp 0.2 brings named capture support, along with several other new features. But first of all, if you haven't seen the previous version, make sure to check out my post [...]

Read More

Gauging Interest in Enhanced JavaScript Regex Methods

Update: Some of the functionality discussed here has made its way into XRegExp 0.5. So, I'll admit that XRegExp 0.1, though hopefully interesting or useful for some people, was scaled back from my original plans. There were two reasons for this: To get it out the door. Aside from from a few marginally useful syntax constructs, I'd already [...]

Read More

XRegExp: An Extended JavaScript Regex Constructor

Update: This version of XRegExp is outdated. See XRegExp 0.5 for the latest, greatest version. I use regular expressions in JavaScript fairly frequently, and although the exec() method is badass and I love the ability to use a function to generate the replacement in the replace() method, JavaScript regexes lack some very significant features available in [...]

Read More