正則式怎麼取?
已知的只有post和111.10.13post字串 我只想取到圖片位置
post[\s\S]+111.10.13 post會幫我取到form1~111.10.13
form3[\s\S]+111.10.13 可以取到我要的,但是 form3 是未知數 所以不能代入form3
程序代码:
<form name="form1" method="post" action="main_03.jsp"> <input type="hidden" name="area" value="1"> <input type="hidden" name="dept" value="AC300"><!--dress--> <input type="hidden" name="doctor" value="10528"> <input type="hidden" name="sdate" value="111100643"> <input type="hidden" name="deptime" value="3"> <input type="hidden" name="room" value="122"> <input type="hidden" name="memo" value=""> <input type="hidden" name="doctorname" value="吳元"> <input type="hidden" name="deptname" value="網址"> </form> <tr align="center" class="Table-title-02"> <td> <div align="center" style="cursor:pointer;" onClick="javascript:sub2(document.form1,'1','4','3','10528','122');"><font color="#0000FF"><u>突破</u></font></div> </td> <td>吳元</td> <td> 須知 </td> <td>網址</td> <td>111.10.06 星期四</td> <td>秋</td> <td>122</td> <td> </td> </tr> <form name="form2" method="post" action="main_03.jsp"> <input type="hidden" name="area" value="1"> <input type="hidden" name="dept" value="AC300"><!--dress--> <input type="hidden" name="doctor" value="10528"> <input type="hidden" name="sdate" value="111101121"> <input type="hidden" name="deptime" value="1"> <input type="hidden" name="room" value="122"> <input type="hidden" name="memo" value=""> <input type="hidden" name="doctorname" value="吳元"> <input type="hidden" name="deptname" value="網址"> </form> <tr align="center" class="N-Content-text"> <td> <div align="center" style="cursor:pointer;" onClick="javascript:sub2(document.form2,'1','2','1','10528','122');"><font color="#0000FF"><u>突破</u></font></div> </td> <td>吳元</td> <td> 須知 </td> <td>網址</td> <td>111.10.11 星期二</td> <td>上午</td> <td>122</td> <td>上午11:00開始</td> </tr> <form name="form3" method="post" action="main_03.jsp"> <input type="hidden" name="area" value="1"> <input type="hidden" name="dept" value="AC300"><!--dress--> <input type="hidden" name="doctor" value="10528"> <input type="hidden" name="sdate" value="111101343"> <input type="hidden" name="deptime" value="3"> <input type="hidden" name="room" value="122"> <input type="hidden" name="memo" value=""> <input type="hidden" name="doctorname" value="吳元"> <input type="hidden" name="deptname" value="網址"> </form> <tr align="center" class="Table-title-02"> <td> <div align="center" style="cursor:pointer;" onClick="javascript:sub2(document.form3,'1','4','3','10528','122');"><font color="#0000FF"><u>突破</u></font></div> </td> <td>吳元</td> <td> 須知 </td> <td>網址</td> <td>111.10.13 星期四</td> <td>秋</td> <td>122</td> <td> </td> </tr> <form name="form4" method="post" action="main_03.jsp"> <input type="hidden" name="area" value="1"> <input type="hidden" name="dept" value="AC300"><!--dress--> <input type="hidden" name="doctor" value="10528"> <input type="hidden" name="sdate" value="111101821"> <input type="hidden" name="deptime" value="1"> <input type="hidden" name="room" value="122"> <input type="hidden" name="memo" value=""> <input type="hidden" name="doctorname" value="吳元"> <input type="hidden" name="deptname" value="網址"> </form> <tr align="center" class="N-Content-text"> <td> <div align="center" style="cursor:pointer;" onClick="javascript:sub2(document.form4,'1','2','1','10528','122');"><font color="#0000FF"><u>突破</u></font></div> </td> <td>吳元</td> <td> 須知 </td> <td>網址</td> <td>111.10.18 星期二</td> <td>上午</td> <td>122</td> <td>上午11:00開始</td> </tr> <form name="form5" method="post" action="main_03.jsp"> <input type="hidden" name="area" value="1"> <input type="hidden" name="dept" value="AC300"><!--dress--> <input type="hidden" name="doctor" value="10528"> <input type="hidden" name="sdate" value="111102043"> <input type="hidden" name="deptime" value="3"> <input type="hidden" name="room" value="122"> <input type="hidden" name="memo" value=""> <input type="hidden" name="doctorname" value="吳元"> <input type="hidden" name="deptname" value="網址"> </form> <tr align="center" class="Table-title-02"> <td> <div align="center" style="cursor:pointer;" onClick="javascript:sub2(document.form5,'1','4','3','10528','122');"><font color="#0000FF"><u>突破</u></font></div> </td> <td>吳元</td> <td> 須知 </td> <td>網址</td> <td>111.10.20 星期四</td> <td>秋</td> <td>122</td> <td> </td> </tr> <form name="form6" method="post" action="main_03.jsp"> <input type="hidden" name="area" value="1"> <input type="hidden" name="dept" value="AC300"><!--dress--> <input type="hidden" name="doctor" value="10528"> <input type="hidden" name="sdate" value="111102521"> <input type="hidden" name="deptime" value="1"> <input type="hidden" name="room" value="122"> <input type="hidden" name="memo" value=""> <input type="hidden" name="doctorname" value="吳元"> <input type="hidden" name="deptname" value="網址"> </form> <tr align="center" class="N-Content-text"> <td> <div align="center" style="cursor:pointer;" onClick="javascript:sub2(document.form6,'1','2','1','10528','122');"><font color="#0000FF"><u>突破</u></font></div> </td> <td>吳元</td> <td> 須知 </td> <td>網址</td> <td>111.10.25 星期二</td> <td>上午</td> <td>122</td>
[此贴子已经被作者于2022-10-4 15:45编辑过]