Skip to content


CatsWhoCode.com: 15 PHP regular expressions for web developers

On CatsWhoCode.com today there’s a new article listing fifteen handy regular expressions you might find useful in your day-to-day development (as well as a brief introduction to what regular expressions are).

Regular expressions are a very useful tool for developers. They allow to find, identify or replace text, words or any kind of characters. In this article, I have compiled 15+ extremely useful regular expressions that any web developer should have in his toolkit.

Here’s just some of the expressions on the list:

  • Enlight a word from a text
  • Remove repeated words (case insensitive)
  • Matching a XML/HTML tag
  • Matching hexadecimal color values
  • Parsing Apache logs

Posted in PHP.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.



close