Justtechjobs.com Find a programming school near you






Online Campus Both


php-windows | 2001042

[PHP-WIN] Get the string between custom delimiters From: Matthew Ralston (matthew.ralston <email protected>)
Date: 04/30/01

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 <email protected>
< www.mralston.co.uk />

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe <email protected>
For additional commands, e-mail: php-windows-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>