Re: Get the string between custom delimiters
| From: | Joe Brown | Date: | Mon, 30 Apr 2001 14:56:40 +0000 |
| Subject: | Re: Get the string between custom delimiters | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-7155@lists.php.net to get a copy of this message | ||
That's pretty much what an xml parser does, isn't it?
""Matthew Ralston"" <matthew.ralston@haltoncollege.ac.uk> wrote in message
news:9cjob9$cur$1@toye.p.sourceforge.net...
> 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 />
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>