Jump to content

Urgent Help matching contents


gibigbig

Recommended Posts

Hey, I need a bit of help replacing some variables in a string. I know its done with preg_replace.

 

Here is the string:

 

Header 1 <|header 2|> header 3 <b>header 4</b>

I would like to get ONLY <|header 2|> from the above string. But "header 2" is variable so please its useless if the preg_replace isn't flexible to find whatever word is in there regardless.

 

Thanks you.

Link to comment
https://forums.phpfreaks.com/topic/262745-urgent-help-matching-contents/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.