Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dreamweaver Regular Expressions Guru Needed

Status
Not open for further replies.

ice7899

Programmer
May 14, 2006
59
0
0
GB
Having decided to implement cfqueryparam in my queries I'm trying to work out 1 Dreamweaver MX regular expression to convert the following.

WHERE CategoryID = #Val(ARGUMENTS.CategoryID)#

WHERE AdID = #Val(ARGUMENTS.AdID)#

To.........

WHERE CategoryID = <cfqueryparam value="#Val(ARGUMENTS.CategoryID#" cfsqltype="cf_sql_numeric">

WHERE AdID = <cfqueryparam value="#Val(ARGUMENTS.AdID#" cfsqltype="cf_sql_numeric">

etc

I've tried a number of formulas but they're not working

 
On the search box
#Val(\(.*\))#

on the replace box

<cfqueryparam value="#Val$1#" cfsqltype="cf_sql_numeric">

I guess you forgot the closing parenthesis on the initial post.



good luck

grtfercho çB^]\..
"Imagination is more important than Knowledge" A. Einstein
-----------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top