Offering Regular Expression help
Oct. 26th, 2009 09:00 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Hey all! I just wanted to offer up a tool that I use whenever I deal with regular expressions to make sure that they are returning what I expect them to.
The RegEx Coach may not have the most intuitive interface at first glance, but it basically boils down to this: Put your regex in the top field, and sample string(s) in the bottom one. What gets highlighted is what will get returned by your expression. It can also be used with the global and substitute options.
Currently, it is a Windows-only tool, but now-unsupported versions exist for Linux/BSD. There's also an 'homage' port here in Java, but I haven't used it.
Anyway, thought I'd point a few people towards that as it has helped me across numerous college classes and now all the way out here to my first DW bugpatch (Yay! Told you I'd find a way to give back!).
The RegEx Coach may not have the most intuitive interface at first glance, but it basically boils down to this: Put your regex in the top field, and sample string(s) in the bottom one. What gets highlighted is what will get returned by your expression. It can also be used with the global and substitute options.
Currently, it is a Windows-only tool, but now-unsupported versions exist for Linux/BSD. There's also an 'homage' port here in Java, but I haven't used it.
Anyway, thought I'd point a few people towards that as it has helped me across numerous college classes and now all the way out here to my first DW bugpatch (Yay! Told you I'd find a way to give back!).