我想用javascript正则提取asp代码中 SQL行的 表达式 但是写来写去都不行,各位辛苦帮忙看看!
想提取引号中的SQL表达式
strSql="Select * from project354 where ID = "&Request("id")& and Name='111'"
无标题文档 function getSqlCode(){ str11=document.all("_ASPeditor").value; /(.*)strSql=(.*)[^"]*$/gi.test(str11); ssss1=RegExp.$2; alert(ssss1); }
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did91994