Sure:
<cfset x = "garbage
match T-0234-01
match P-1234-01
nomatch d-1234-01
match p-1234-01
nomatch p-123-01
match c-1094-03
nomatch P-1234-a1
garbage">
<cfset y = ReReplaceNoCase(x,
"([TPSC][-][^-]{4}[-][0-9]{2})", "<b>\1</b>", "All")>
<cfoutput>x=.....|#x#|</cfoutput>
<br><br>
<cfoutput>y=.....|#y#|</cfoutput>
HTH
Dick
At 12:30 PM -0700 7/27/01, Ken Beard wrote:
>This question was asked on another list and I thought someone here might
>know. Is this possible with rereplace()?
>
>
>
> >>Any Reg Ex people out there? I am doing a conversion that requires me
>>>to find the certain format of a string, and add something before it.
>>>Basically like this:
>>>
>>>noticePage = REReplaceNoCase(noticePage, "[TPSC][-][^-]{4}-[0-9]
>>>{2}", "<p>I'm a bid!", "ALL");
>>>
>>>Where it is finding numbers like C-1324-01. All I want is for it
>>>right now is to put a page break before it. So it would replace the
>>>string found with a <br> and the string found. Anyone have any
> >>thoughts out there?
>>>
>>>Cory Foy
>>>----------------------
>>>Webmaster
>>>Hillsborough County Information Technology
>>>Phone: (813) 276-8287
>>>Email: [EMAIL PROTECTED]
>>>Web: www.hillsboroughcounty.org
> >
>>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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