Replacing a symbol throught a file

From: Kelly (foo_at_foo.com)
Date: 02/28/04


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);



Relevant Pages

  • Replacing a symbol throughout a file
    ... 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. ... $html is file I read in. ...
    (alt.php)
  • Re: The Barrister and me and myself and I
    ... a University assignment, but somehow seem to have ended up brawling ... The quality of English is the best ... benefit from reading the group. ... punctuation, but as everyone here knows, I don't consider punctuation ...
    (alt.usage.english)
  • Re: Old subject - audio recording in pa.
    ... You may want to re-read your oringinal post. ... With the lack of punctuation, ... it took me reading it a couple of times to understand that the driver was ...
    (alt.security.alarms)
  • Re: my babies have got 2 go !!!
    ... Your spelling and punctuation are certainly up to the ... required standard. ... reading this.... ... Sprint RS "Big Yellow" ...
    (uk.rec.motorcycles)
  • Re: Does your reading corrupt your writing?
    ... In article, Patricia C. Wrede ... No - but what I meant is that some people pick up both story sense and ... punctuation from their reading, some may just pick up punctuation, and ... reading, and how many don't. ...
    (rec.arts.sf.composition)