Katrina

This isb't exactly what you waked for, but it may help to get you 
there.   Note the first cfset may wrap in the email:


<cfset test = 
'"http://www.santaanacc.com/html/01chamber/directory/company.asp?COMPA 
NY=A+America+Signs%2C+Inc%2E" target="_top">'>


   <cfset test = test & test & test> 

   <cfoutput>
   <br>#ReReplaceNoCase(test, '[^?]*\?([^"]*)" target="_top">', 
'\1<br>', 'ALL')#
   </cfoutput>

HTH

Dick


At 5:44 PM +0000 1/20/01, Katrina Chapman wrote:
>I sent this a week ago and didn't really get a response.  So I'm posting
>again in the hopes that my question will be answered this time.
>
>TIA,
>--K
>
>-----Original Message-----
>From: Katrina Chapman [mailto:[EMAIL PROTECTED]]
>Sent: Friday, January 12, 2001 4:49 PM
>To: cf-talk
>Subject: Regex prob
>
>
>I'm having a problem getting a regular expression to work the way I expect
>it to.
>
>Trying to use
>
><cffile action="READ" file="#file#" variable="textfile">
><cfset test = mid(textfile, 1, 20000)>
>#ReReplaceNoCase(test, '[^(company=[a-z|\+|(\%0-9A-Z)]+")]', '*', 'ALL')#
>
>I am expecting everything that's not "company=(either a letter or a + or a
>%numberletter sequence) and there can be more than one before the next
>quote" to be replaced by an asterisk.  That's not what I'm getting.  It's
>not finding any matches.
>
>IE:
>
>       <td><font face="Arial" size="2" color="#000080"><a
>href="http://www.santaanacc.com/html/01chamber/directory/company.asp?COMPANY
>=A+America+Signs%2C+Inc%2E" target="_top">
>
>Should return
>
>********************************************************
>*********************************************************************
>COMPANY=A+America+Signs%2C+Inc%2E"****************
>
>But I get the full thing.  Can anyone out there help me figure out what I'm
>doing wrong?
>
>Thank you,
>--Katrina Chapman
>http://www.katrinachapman.com
>http://www.cfchick.com
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to