Skip to content

Instantly share code, notes, and snippets.

@boughtonp
Created September 26, 2013 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boughtonp/6713441 to your computer and use it in GitHub Desktop.
Save boughtonp/6713441 to your computer and use it in GitHub Desktop.
Regex to find incorrectly var scoped rc variables in script-syntax CFCs
function\s+\w+\(event,rc,prc\)\s++([^v}]++|v(?!ar\s++rc)|(?<!\n\t)\})*var\s++rc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment