| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 736 人关注过本帖
标题:正則式怎麼取?
只看楼主 加入收藏
Z89
Rank: 2
等 级:论坛游民
威 望:1
帖 子:91
专家分:32
注 册:2022-4-26
结帖率:66.67%
收藏
已结贴  问题点数:3 回复次数:1 
正則式怎麼取?
已知的只有post和111.10.13
post字串 我只想取到圖片位置

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编辑过]

搜索更多相关主题的帖子: input type name value hidden 
2022-10-04 15:31
虫眼
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:10
帖 子:314
专家分:1121
注 册:2017-11-29
收藏
得分:3 
xpath yyds
2022-10-09 15:08
快速回复:正則式怎麼取?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.024132 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved