Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
POSIX bracket expressions in character classes #18
Here's my stab at supporting POSIX bracket expressions in character classes, as requested in the group:
I welcome your feedback.
added a commit
this pull request
Aug 25, 2011
It's in the new Pickaxe book. Even normal character classes aren't documented in most places, including "The Ruby Programming Language" by Flanagan and Matz! So negative ones look like this: /[[:^alpha:]]/ Be a simple thing to add to your current patch (which I pulled, but haven't yet released, BTW).