Comment by Oris on 2005-03-28
Thanks! It helped me :)
Comment by Raj on 2005-04-04
This artical is vary useful for biggeners that has programming knowlage but dont know about regex.
Comment by Devon on 2005-06-08
Just wanted to make you aware that there is a slight error in one of your examples.
Under the multiple characters heading
"t?b+$": should be a possible t followed by one or more b's at the end of the string.
It's a very small error, but just wanted to point that out to you. I'm just now getting a grasp on regular expressions and this tutorial has been very helpful.
Comment by Kostya on 2005-06-22
short, comprehensive article. thank you.
Comment by Fred on 2005-07-27
in your last example you say "(note the escaping back slash)" but there is no backslash anywhere...
Comment by Dhiraj on 2005-08-05
can u pl tell me the regular expression of :
start with '[/list' and then one or more any character and end with ']'
Comment by vijayakumar R on 2005-12-06
so helpful for me.There is an error on last line of multiple character.
thank u
Comment by Cristi Gageanu on 2006-01-23
Thanks for this tutorial, regexp looks so clear when are well explained!
Comment by Laurence Robb on 2007-01-27
OR operator? Is there a AND? That would help.
Comment by Travis on 2007-06-23
I\'ve been looking for info on preg_match for a long time, never understood how it works, now I do, this take hotlinking and security to a new level for me!
Comment by kb on 2007-10-20
thinking of trying this out. i hope it will work
Comment by JS on 2007-12-30
Short,sharp,and to the point. It's a whole lot easier when well explained. Thanks
Comment by xxxxxxxx xxxxxxxx on 2008-01-02
goof tuto friend, go on, and thank you
but you have to check that the secuity image below is not secure,, its name is the same thing of its content, understand??
bye
Comment by xxxxxxxx xxxxxxxx on 2008-01-02
goof tuto friend, go on, and thank you
but you have to check that the secuity image below is not secure,, its name is the same thing of its content, understand??
bye
Comment by Brinjal on 2008-01-25
Useful, can improve with an example of string extraction from space delimited strings:-
$mystr = "der34w hetd543gd dters43b";
If we want it to extract as:
$matches[0] = "der34w hetd543gd dters43b"
$matches[1] = "der34w "
$matches[2] = "hetd543gd"
$matches[3] = "dters43b"
Comment by Mela on 2009-12-28
Hi,
I thing that this sentence is some mistake. Maybe you wanted to say strpos...
\"It\'s actually more efficient to use the PHP function substr in these cases\"
(in http://www.tipsntutorials.com/tutorials/PHP/50)
and this form gives back-shlashes before \" or \' and dont clear when security image is wrong write.
Comment by Juned Kazi on 2008-04-30
This is a mind blowing article. It really did help. Thanks for all the effort.
Comment by Tiago on 2010-01-29
Thanks for your explanation. It\\\'s easier when well explained...
Comment by ackit on 2010-03-09
This was helpful
Comment by lucky on 2010-08-20
wicked this helped thanks
Comment by simbu m on 2010-08-26
It is very useful but very least examples are there.
Comment by simbu m on 2010-08-26
It is very useful but very least examples are there.
Comment by Dinesh on 2010-08-28
Very good examples, I have been looking for this kind of tutorial.
Thanks
|