Neex an example of a regular expression real quick? Want to test it without fouling up your code? Here are two ‘resource-filled’ sites that help get you there and back.
Busy, busy, busy today folks – so just a quicky. And yes, I know that I’ve mentioned at least one of the following regular-expression example (and test) sites I’ve before. That said, like a good burrito it bears repeating:
- Regular Expression Library – this website claims to be “the Internet’s first Regular Expression Library.” Whether they are or not is irrelevant, what is relevant are the close to 1000 semi-documented regex examples they provide.
- Perl : Sample Regular Expressions – nothing as comprehensive as the previous two links, but here are some nice simple examples of the type of one-line-wonder stuff you may want to add into a MovableType or WordPress plug-in or text filter.
Now you have no excuse not to shoot yourself in the foot with a nice nasty regex!