2011-11-04 32 views
0
javascript:checkForSave('./viewSectorDefPage.htm');,viewSectorDefPage,htm'); 

來自這個字符串我想通過正則表達式只提取viewSectorDefPage部分的值,我嘗試了多個例子但是無法得到它,任何幫助都會變得很有用,使用正則表達式提取字符串的特定部分

+1

解決方案那你試試? – Toto

回答

0

第一次嘗試:

result = "javascript:checkForSave('./viewSectorDefPage.htm');,viewSectorDefPage,htm');".match(",(.*),") 

這讓你在result[1]

相關問題