The online ColdFusion / CFML community website
CVgeek added a discussion to the group CF Contractors
CVgeek liked CVgeek's discussion Client facing, Senior ColdFusion developer – 50k (60k max) - Hertfordshire – Job – F/T – on site only
CVgeek added a discussion to the group Coldfusion Jobs© 2013 Created by Nick Tong.
Comment Wall (7 comments)
Hey James,
Just saw your comment about the cflocation token. Here's something you can try that may work.
I'm guessing that the tags without tokens should be formatted
<cflocation url="myPage.cfm" />
(or something close to that).
A RegEx that would add the addtoken attribute to all of those would be something like:
Find: (<cflocation url="[^"]+") />
Replace: $1 addtoken="true" />
This should take any cflocation tag that only has the url attribute and replaces that with
Hope this helps you out.
(I forgot to add the "result" part to my redo post...sorry for all of the posts)
Just came across this blog post
http://www.gskinner.com/blog/archives/2008/04/regexr_full_cod.html
The app is here
http://gskinner.com/RegExr/
It actually matches as you are typing your regular expression which seems perfect for someone learning regEx (or just needing to test something out before running it over and over again on the server).
It would look something like this:
Find: (<cflocation url="[^"]+") ?/?>
Replace: $1 addtoken="true" />
This would capture anything that was like
<cflocation url="testPage.cfm" />
<cflocation url="testPage4.cfm"/>
<cflocation url="testPage2.cfm">
<cflocation url="testPage3.cfm" >
and add the addtoken="true" to them all
You need to be a member of ColdFusion Community to add comments!
Join ColdFusion Community