Get the string between custom delimiters
| From: | Matthew Ralston | Date: | Mon, 30 Apr 2001 13:06:50 +0000 |
| Subject: | Get the string between custom delimiters | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-50843@lists.php.net to get a copy of this message | ||
Is there a nice easy function that could be used to get a sub string that
lies in between two other sub strings in one big string.
For example... get the text that lies in between "<title>" and
"</title>"
(without the quotes) in the code of a web page.
I'm after a function like:
string getstring_between_customdelimiters(string source, string
open_delimiter, sting close_delimiter)
Or something that could be easily be used in that manner. Case insensitive
if possible!
Thanks,
Matt
matthew.ralston@haltoncollege.ac.uk
< www.mralston.co.uk />