preg_match()

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

Post Reply
traffic
Forum Newbie
Posts: 17
Joined: Fri May 23, 2003 1:18 pm

preg_match()

Post 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...

...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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 .... :?
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

assuming you have your regex expression, preg_split()
Post Reply