PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
traffic
Forum Newbie
Posts: 17 Joined: Fri May 23, 2003 1:18 pm
Post
by traffic » Wed Nov 09, 2005 10:36 am
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...
...
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Wed Nov 09, 2005 10:44 am
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 ....
josh
DevNet Master
Posts: 4872 Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida
Post
by josh » Wed Nov 09, 2005 11:41 am
assuming you have your regex expression, preg_split()