PHP & Regular Expressions

Introduction

A regular expression is a specially formatted pattern that can be used to find instances of one string in another. Several programming languages including Visual Basic, Perl, JavaScript and PHP support regular expressions, and hopefully by the end of this primer, you

This entry was posted in Programming. Bookmark the permalink.

24 Responses to “PHP & Regular Expressions”

  1. Rita says:

    This is GREAT! I'm new to PHP and have found several good examples for coding, but this is the first web page I've found that actually explains exactly what the expressions mean. Thanx so very much!!!

  2. Daniel says:

    Awesome tutorial…now I can write my own regular expressions.

  3. Souvik Banerjee says:

    Excellent, this help me to increase my confident in Regular Expression. Thanks a lot.

  4. rashmi says:

    This is really very helpful article for beginner as well as professional. It benefited me a lot.

  5. vanja says:

    It helps

  6. Gerry says:

    Excellent, finally somewhere that explains Reg Expressions in an understandable manner.

  7. Ansar K A says:

    Its nice and Very helpfull for me
    Thanks

  8. sunil says:

    this is good tutorial to understand rex

  9. Andy says:

    Wow – this is great! Having looked at the php.net ereg page, it doesn't seem to say or link to how to create the 'pattern' field and let's you guess from the one example. Now it's all become clear!

  10. Sherman says:

    great tutorial with examples!

  11. Michael says:

    Excellent tutorial. I needed to limit the numbers entered for a phone number field and it worked like a charm. Thanks.

  12. Silvana says:

    thank you. it was very helpful and clear

  13. Romero says:

    Made me understand Regular expressions in no time. And I can say now its not rocket science. :)
    nicely done!

  14. Ved says:

    Nice tutorial dude, I think I got the basic understanding about regular expression only after reading your article. Thanks

  15. salahudh says:

    nice tutorial i got the phone number and email validation using this tutorial

  16. Matt says:

    Terrific

  17. David says:

    Why isn't there more people like you around. Others teach how to drive a car but never how to start it in the first place.

    Thank you.

  18. David says:

    This is one of the best tutorials I have come across – well done!

  19. vinod says:

    Excellent

  20. Nicola says:

    GREAT! eventually I have found a comprehensive tutorial about regular expression. The internet is full of websites that are copies of each other, and they all have only one crap example with data validation. This is not only original but also a very informative page! Thanks!

  21. sridhar reddy says:

    very good site for regular expressions

  22. Marcel says:

    Thanks alot!

  23. k.deal says:

    Awesome! … my compliments to you, for your excellent presentation. Now I'm trying to determine how to leave "hyphens" in a phone number but remove all other non-alphanumeric characters.

Leave a Reply