What version of CF? I don't understand what you mean by empty space? A
single space, blank lines in your display, ...?

The code you provided will replace a select by a single space. It will
break down if you have another select following the first one you match.

Pascal

> -----Original Message-----
> From: jean-marc bottin [mailto:[EMAIL PROTECTED]
> Sent: vrijdag 18 juni 2004 12:11
> To: CF-Talk
> Subject: Those mysterious RE
>
> Hi,
>
> I have been struggling all the morning with these RE.
> I am trying to replace a bunch of HTML by some empty space.
> It is for a select tag. I know the opening tag and close tag.
> Some thing like <select name="language">
>   <option value="1" selected>En</option>
>   <option value="2">Fr</option>
>   <option value="3">Sp</option>
>   <option value="4">Gr</option>
> </select>
>
> In cf I do:
>
> <cfset rex = ReReplace(myhtlmcode,  "<select
> name="select_1">.*</select>",  " " ,  "All")>
>
> I use the ".*" because the <option> tag can change and pull 5
> or 10 languages options. Any idea how to replace anything by
> any empty sapce?
>
> Thank you,
>
> Jean-Marc
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to