<cfset myhtlmcode = ReReplace(myhtlmcode, "<select name=""select_1"">.*?</select>", " ", "All")>
> -----Original Message-----
> From: Jean-Marc Bottin [mailto:[EMAIL PROTECTED]
> Sent: vrijdag 18 juni 2004 12:25
> To: CF-Talk
> Subject: RE: Those mysterious RE
>
> By empty sapce I mean a single space.
> I would like to replace the entire HTML code by a single space.
>
> -----Message d'origine-----
> De : Pascal Peters [mailto:[EMAIL PROTECTED] Envoyé : vendredi
> 18 juin 2004 12:16 À : CF-Talk Objet : RE: Those mysterious RE
>
>
> 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]

