Replacing a symbol throught a file
From: Kelly (foo_at_foo.com)
Date: 02/28/04
- Next message: R. Rajesh Jeba Anbiah: "Re: to template or not"
- Previous message: JDJones: "Re: PHP/MySQL: query based on selected form option"
- Next in thread: Paul Wellner Bou: "Re: Replacing a symbol throught a file"
- Reply: Paul Wellner Bou: "Re: Replacing a symbol throught a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 28 Feb 2004 05:38:03 GMT
I am reading in a file and I want to go through and change the punctuation
to spaces before I continue with the rest of my regexprs. I have tried using
preg_replace() and str_replace() and substr_replace() but I can't seem to
get it right. Any help would be greatly appreciated.
$any is what I want to replace, $space is what I want to replace it with and
$html is file I read in.
preg_replace($any, $space, $html);
- Next message: R. Rajesh Jeba Anbiah: "Re: to template or not"
- Previous message: JDJones: "Re: PHP/MySQL: query based on selected form option"
- Next in thread: Paul Wellner Bou: "Re: Replacing a symbol throught a file"
- Reply: Paul Wellner Bou: "Re: Replacing a symbol throught a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|