Manipulating bullet list ul tag using Regex or something else

2007-07-19 Thread Jide Aliu
Hi, Is it possible to wrap a p tag round bullet list like the examplme below, amongst a massive chunk of data, basically wherever the function or regex finds an opening and closed ul tag it wraps an opening and closing p tag rounds it: p ul liFirst line/li liFirst line/li liFirst line/li

Re: Manipulating bullet list ul tag using Regex or something else

2007-07-19 Thread Jochem van Dieten
Jide Aliu wrote: Is it possible to wrap a p tag round bullet list like the examplme below, amongst a massive chunk of data, basically wherever the function or regex finds an opening and closed ul tag it wraps an opening and closing p tag rounds it: You don't even need a regex for that,

Re: Manipulating bullet list ul tag using Regex or something else

2007-07-19 Thread Ben Doom
As long as you can guarantee that you won't have nested lists, it's pretty easy. rereplacenocase(string, (ul.*?/ul), p#1#\p, all) Not tested, from memory, YMMV, keep head and arms inside the regex at all times. And I've done backreferencing in 3 languages since doing it in CF. I think the

Re: Manipulating bullet list ul tag using Regex or something else

2007-07-19 Thread Ben Doom
Heh. I gotta stop looking for zebras. Even if someone shouts Zebra! Yeah, your solution is much more efficient than mine. --Ben Doom Jochem van Dieten wrote: Jide Aliu wrote: Is it possible to wrap a p tag round bullet list like the examplme below, amongst a massive chunk of data,

RE: Manipulating bullet list ul tag using Regex or something else

2007-07-19 Thread Dave Francis
Why not just use CSS to style ul (space it with margins or whatever)? -Original Message- From: Jochem van Dieten [mailto:[EMAIL PROTECTED] Sent: Thursday, July 19, 2007 6:40 AM To: CF-Talk Subject: Re: Manipulating bullet list ul tag using Regex or something else Jide Aliu wrote