#include <Array.au3>
Local $Str = _
' <td class="rowdata">Y</td>' & @CRLF & _
' <td class="rowdata"><a HREF="./Timeline/timelineview.php?ACTID=282774&tmplttype=CBM" target="_blank">View</a></td>' & @CRLF & _
' </tr> <tr class=E2data>' & @CRLF & _
' <td class="rowdata">Verizon CDMA</td>' & @CRLF & _
' <td class="rowdata"><a HREF="#" onmouseover="this.T_WIDTH=300;this.T_ABOVE=true;this.T_OFFSETX=-50;this.T_OFFSETY=32;this.T_FONTSIZE=' & "'16px';return escape(', ');" & '">Falls , SD, US</td>' & @CRLF & _
' <td class="rowdata">WCDMA CNMTS</td>' & @CRLF & _
' <td class="rowdata">Profins Oliver</td>' & @CRLF & _
' <td class="rowdata"><a HREF="#" onmouseover="this.T_WIDTH=300;this.T_ABOVE=true;this.T_OFFSETX=-150;this.T_OFFSETY=32;this.T_FONTSIZE=' & "'16px';return escape('LOR: CNM can't be launch.<br> ');" & '">LOR: CNMTS can' & "'t be launch.</td>" & @CRLF & _
' <td class="rowdata">No</td>' & @CRLF & _
' <td class="rowdata">1 hour, 6 minutes</td>' & @CRLF & _
' <td class="rowdata">Needed</td>' & @CRLF & _
' <td class="rowdata">Y</td>' & @CRLF & _
' <td class="rowdata">1836632</td>' & @CRLF & _
' <td class="rowdata">Y</td>' & @CRLF & _
' <td class="rowdata"><a HREF="./Timeline/timelineview.php?ACTID=282779&tmplttype=CNM" target="_blank">View</a></td>' & @CRLF & _
' </tr><br /><table WIDTH="95%" align="center">' & @CRLF
;MsgBox(0, '原字符串', $Str)
Local $Test = StringRegExp($str, '(?si)<tr[^>]+>((?:(?!\/tr>).)*CNMTS(?:(?!\/tr>).)*)</tr>', 1)
If @Error Then Exit MsgBox(48, '', '未包含关键字')
Local $Test1 = StringRegExp($Test[0], '(?<=>)[^<\v"]+(?=<)', 3)
_ArrayDisplay($Test1, UBound($Test))
|