Getting string's content between two tags..
| From: | Aviv Revach | Date: | Tue, 13 Mar 2001 18:53:25 +0000 |
| Subject: | Getting string's content between two tags.. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-43893@lists.php.net to get a copy of this message | ||
Hey!
Once again, I have a question ;)
I have a string that looks like this(I loaded it with a file data):
"<!-- head -->
blabla<!-- body -->
continue of blabla<!-- end -->" I would like to know what's the fastest technique of taking just a specific part in this string(case-insensitive) and putting it into a new string i.e.: from "<!-- head -->" to "<!-- body -->" or: from "<!-- body -->" to "<!-- end -->" Thank you in advance - Aviv Revach
BRILLIANeT Website -http://www.brillianet.com/