(For the archives)
The RegEx I finally used was this:
search:
(.*)
replace:
\1
I tried this in 3 editors: jEdit, eMacs and BBEdit
jEdit interpreted the replace expression as literally "\1"
eMacs didn't like the parenthesis in the search string
In BBEdit it worked like a charm.
Not sure why. Pe
On Fri, 2002-09-27 at 16:53, John Holmes wrote:
This isn't accurate enough because is not always preceeded by:
some text. It is sometimes preceeded by some text or
other items.
This expression matches fairly well:
[a-zA-Z0-9\.,'\-\s]*
So it matches up to the :
A whole bunch of text
> I have a fairly large html document that I need to convert to xml.
> The current format is is:
> A whole bunch of text
>Something else
> (There is a new line in there before )
>
> Which I need to convert to
> A whole bunch of text
>Something else
$new_text = str_replace("\
I have a fairly large html document that I need to convert to xml.
The current format is is:
A whole bunch of text
Something else
(There is a new line in there before )
Which I need to convert to
A whole bunch of text
Something else
Any ideas??
--
PHP General Mailing
4 matches
Mail list logo