Replacing 2 strings
| From: | W Luke | Date: | Sun, 29 May 2005 16:22:48 +0000 |
| Subject: | Replacing 2 strings | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-215963@lists.php.net to get a copy of this message | ||
Hi,
I have some text in a file which, when it's dumped to a var, needs to
be replaced. In its raw form, it looks like this: <^JIM_JONES> and I
need to remove the <^_ and > characters and have it read "Jim-Jones"
It's nestled in amongst a load of other text - I'm fopen'ing a file
and reading it line by line - the text-to-replace is just in a var
named $text1
Any ideas would be great
Will