regex variables in rereplace
4 Message(s) by 3 Author(s) originally posted in advanced cfml techniques
| From: ogre11 |
Date: Wednesday, October 24, 2007
|
Is it possible to use
regex variable s with rereplace? For
instance if I wanted
to put brackets around the area
code in a phone number, I'd like to do the
below code, but it doesnt work, just sees the variable as a string
rereplace(someNumber, "([\d]{3,3})", "($1)")
| From: Grizzly9279 |
Date: Wednesday, October 24, 2007
|
| From: ogre11 |
Date: Wednesday, October 24, 2007
|
awesome, thanks
| From: Adam Cameron |
Date: Wednesday, October 24, 2007
|
Next Message: There are three folders. fbx_settings.cfmdsp_recommendation.CFM Mainsubmenu.CFM how do they worktogether?