RegEx to find SQL in code without CFQueryParam
ColdFusion, CFEclipse, RegexI know it's far from perfect (that's partly why I'm posting - so you can show me the light), but here's a RegEx I'm using in Eclipse to find all the places in our code where we didn't use CFQueryParam around variables (shame, shame). Please let me know if you see ways to improve it.
\s+(where|set)\s+[a-z_\.]+\s+(like|\=)\s+'?%?#[a-z"_'\.\(\)\+\/]+#%?'?
And can someone help me figure out how to make this Regex include CF variables passed in to INSERT statements?
TIA





Loading....