
Testers
Get flash to fully experience Pearltrees
Regular Expression Library
Toolbox - Regular Expression Tester with examples
Replaces any "gray" or "grey" with "GRay". First, \b is used to prevent replacement of "gray" within the word "stingray". Having no \b at the end allows replacement of "gray" in "grayish". Next, [ae] allows for alternate spellings. Finally, i and g specify a case-insensitive and global search and replace. /\b(cat|dog)\b/ig,"pet"reWork: a regular expression workbench
This is a graph of the FSA that corresponds to this regular expression. This won't help you use regular expressions; it's just to test my graph presentation library, and for fun. If you're interested in this sort of thing, see my reAnimator tool.JavaScript RegExp Example: Online Regular Expression Tester
Did this website just save you a trip to the bookstore? Please make a donation to support this site, and you'll get a lifetime of advertisement-free access to this site!***Regex Powertoy (interactive regular expressions)
Enter a regular expression in the top text area; double-click in the bottom area to enter the target input to match. As soon as you tab, [esc], or click out of the bottom area, matching will begin. You can choose between Perl/PHP-like or Java regular expression syntax, and whether the target text is highlighted to show matches, edits, replacements, or splits. The animate option lets you watch the regex engine at work. Creating a matchmark sends your browser to a bookmarkable URI that will reproduce the current regex pattern, settings, and target text. Clicking a match gives more info, including how the capturing groups matched.Regular Expression Tester Anytime I use regular expressions (aka "regex"), I find myself doing a bit of trial-and-error until I get the right pattern. So, I whipped up this simple utility to help.

