I'm not parsing a file, I'm taking a bunch of text from a db, replacing the
<p> with the \par tags, replacing the 8 million consecutive spaces that
people have put in with single spaces, then making sure that \par is still
followed by a space so it gets read as a \par and still shows the next word.
----- Original Message -----
From: "Pascal Peters" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, December 11, 2003 8:31 AM
Subject: RE: regex help
> rereplace(mystring, "(\ <file://\\par)([^[:space> \par)([^[:space:]])",
> "\1 \2", "all")
> -----Original Message-----
> From: Deanna Schneider [mailto:[EMAIL PROTECTED]
> Sent: donderdag 11 december 2003 15:25
> To: CF-Talk
> Subject: regex help
>
>
> Hi All,
> I'm trying to write a regex that does the following:
>
> Looks for any instance of the string \par followed by anything but a
> space
> and replace it with \par and a space and the character that followed it.
>
> So, if I have \parThe
>
> I want
> \par The
>
> Here's what I'm trying, and it doesn't work:
>
> rereplace(mystring, "\par([[::alnum::]]+)", "\par \1", "all")
>
> Help?
> Thanks.
> Deanna
>
>
> --
> Deanna Schneider
> UWEX-Cooperative Extension
> Interactive Media Developer
> _____
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

