範例1:
把所有在Request.QueryString("這裡不管") 取代成 Anti_injection(Request.QueryString("這裡不管"))

尋找:

Request\.QueryString\(\"(.*)\"\)

取代:

Anti_injection(Request.QueryString("$1"))

範例2:
把所有在Request.QueryString("只處理變數名稱") 取代成 Anti_injection(Request.QueryString("只處理變數名稱"))

尋找:

Request\.QueryString\(\"([A-Za-z0-9_]+)\"\)

取代:

Anti_injection(Request.QueryString("$1"))

參考資料:
http://www.adobe.com/devnet/dreamweaver/articles/regular_expressions.html

Leave a reply

required

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>