views:

42

answers:

2

I need help using regular expressions using Find and Replace in VS2010. I want to Find request("somevar") and replace it with html_encode(request("somevar"))

somevar will be a different for each request("")

Thanks.

+2  A: 

Replace request({:q}) with html_encode(request(\1)).

SLaks
using request({:q}) in the search box. I received an error. "The following text was not found."
mike
found the problem. request\({:q}\). thanks.
mike
Yeah, the escape characters get you everytime...
jlrolin
Then you should accept this answer by clicking the hollow check.
SLaks
A: 

SLaks got it right using a tagged expression. I have a post here that goes into a little more detail on how tagged expressions work: http://blogs.msdn.com/b/zainnab/archive/2010/09/12/replace-in-files-tagged-expressions-vstipfind0016.aspx

zainnab