Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Regular Expression for Dummies [closed]

Tags:

regex

php

Is there any resource out there that covers regular expression in a very basic starter level? I have looked at http://www.regular-expressions.info/ but it is not exactly 'quick reference' friendly.. any other sources?

For me I mostly use it in php, so php friendly would be helpful.

like image 512
Jubair Avatar asked May 06 '11 08:05

Jubair


3 Answers

Look at these: http://www.webcheatsheet.com/php/regular_expressions.php http://www.catswhocode.com/blog/15-php-regular-expressions-for-web-developers

like image 62
d.lebedev Avatar answered Oct 04 '22 12:10

d.lebedev


When I was starting out with regular expressions I got recommended this book: Mastering Regular Expressions. It really helped me understand the basic concept and how regular expressions work. But also I can still learn from it today because it also covers more advanced topics.

There are some pdf versions of the books out there, but I don't think they are legal. Otherwise I would really recommend buying this book if you really like to actually understand regexp and not just copy ready regexps and kind of understand how it works.

like image 32
rzetterberg Avatar answered Oct 04 '22 12:10

rzetterberg


If you are on windows, you can use this program http://www.radsoftware.com.au/regexdesigner/ It's mostly for .net but can apply to any regex scenario. There's a quick reference on the side and you can build and test your expressions.

like image 40
ariel Avatar answered Oct 04 '22 11:10

ariel