Title: RegEx Backreferences...

Morning!

How do I return back references? (maybe I need another coffee, but I just don't see it)

The regex
(\d+)\s+(\d{4}\s+\d{4})

07 1234 5678

I know I can reference to the area code by
07 = \1
I know I can reference to the telephone number by
1234 5678 = \2

But how in godsname do I output it?

I could NOT just do
<cfoutput>
#\1# #\2#
</cfoutput>

All I can think of is using reReplace() but surely there must be some other way!?



Taco Fleur
07 3535 5072

Tell me and I will forget
Show me and I will remember
Teach me and I will learn

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to