Another quick regex: to perform a sitewide search/replace that replaces every “parameterExists” by “isDefined”, simply do a:
Search: parameterExists\(([^)]*)\)
Replace: isDefined(“\1”)
That saved me at least 2 hours 🙂
Protecting the world from bad CFML code since 2003 and now also featuring other stuff
Another quick regex: to perform a sitewide search/replace that replaces every “parameterExists” by “isDefined”, simply do a:
Search: parameterExists\(([^)]*)\)
Replace: isDefined(“\1”)
That saved me at least 2 hours 🙂
Previous post: cfqueryparam / regular expression
Next post: My personal review of Webstock 2010 – (part I: workshops)
Comments on this entry are closed.