Try
<cfset myhtlmcode= REReplaceNoCase(myhtlmcode, regex, " ", "All")>

Pascal

> -----Original Message-----
> From: Jean-Marc Bottin [mailto:[EMAIL PROTECTED]
> Sent: vrijdag 18 juni 2004 12:40
> To: CF-Talk
> Subject: RE: Those mysterious RE
>
> I have tried under CFMX 6.1 the following _expression_:
>  
>  
>  <cfset regex = "<SELECT size=2
> name=X2CC229C91022073EF855A729E25A9E07>.*?</select>">
> <cfset myhtlmcode= ReReplace(myhtlmcode,  "#regex#",  " " ,  "All")>
>  
> Unfortunately without success. Did I miss something?
>
> -----Message d'origine-----
> De : Pascal Peters [mailto:[EMAIL PROTECTED] Envoyé : vendredi
> 18 juin 2004 12:27 À : CF-Talk Objet : RE: Those mysterious RE
>
>
> Only on cfmx:
>
> <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]

Reply via email to