Page 1 of 1

preg_match()

Posted: Wed Nov 09, 2005 10:36 am
by traffic
Hello...

I am trying to figure out preg_match() and can't seem to find a good tutorial on it...

Question:

If I have:

Code: Select all

$string = "In front of <br> In back of";
I am trying to break this string into (3) parts using preg_match()... (or, anything that will work... =P)


Thank you for your help...

...

Posted: Wed Nov 09, 2005 10:44 am
by feyd
have you read the stickies in the Regex board here? (viewforum.php?f=38)

I'm not sure how you are wanting to break the example string apart, so .... :?

Posted: Wed Nov 09, 2005 11:41 am
by josh
assuming you have your regex expression, preg_split()