Jump to content

[SOLVED] PHP Unique Search Expression


fubowl

Recommended Posts

Is there a function, similar to preg_replace, where I can look for a unique indicator in my code, and then look for another unique indicator, while saving the contents between the two indicators to a variable?

 

Such as if I had the following string:

 

"bla bla random stuff <indicator>i want to save this stuff</indicator>bla bla more random stuff"

 

So I obviously want the stuff between the indicators, and I thought if I could search for the first indicator until it's closing tag, while saving the contents in between, then it could work. But I don't know if there is a function to do that.

Link to comment
https://forums.phpfreaks.com/topic/60456-solved-php-unique-search-expression/
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.