日期:2014-05-17 浏览次数:20846 次
val = "<--page table:AlbumSortTwo rows:28 where:AlbumSort_ID=8 order:order by AlbumSortTwo_Order Desc,AlbumSortTwo_ID Desc repeat:4 default:<td width='25%' height='150'> </td> -->"
val = "<--page table:AlbumSortTwo rows:28 where:AlbumSort_ID=8 order:order by AlbumSortTwo_Order Desc,AlbumSortTwo_ID Desc repeat:4 default:<td width='25%' height='150'> </td> -->" var regex = /where:(.+?)(?=\s*order:order)/i alert(regex.exec(val)[1])