jhoskins98 has asked for the wisdom of the Perl Monks concerning the following question:
The code:.........<TD align=center Class="ms-vb" id="bottomPagingCell"><table>< +td nowrap class="ms-paging">1 - 100</td><td> <A HREF="javascript:" OnClick='javascript:SubmitFormPost(" +http:\u002f\u002fwdcbeta.sharepointsite.net\u002f_layouts\u002fpeople +.aspx?Paged=TRUE\u0026p_FSObjType=0\u0026p_Title=Michl\u002520Non\u00 +26p_ID=119\u0026View=\u00257b4B73D499\u00252dCD8D\u00252d4DE4\u00252d +ABB5\u00252d1911503FA95C\u00257d\u0026FilterField1=ContentType\u0026F +ilterValue1=Person\u0026MembershipGroupId=0\u0026PageFirstRow=101");j +avascript:return false;'><img src="/_layouts/1033/images/next.gif" bo +rder=0 alt="Next"></A></td></tr></table></TD></TR> <TR><TD class="ms-bottompagingline3">.......
It fails to find the first regex match. Seems like the quotes in the javascript is killing the match. Any suggestions? Update: It is failing to find the section of HTML, part of which is above.my $stream2 = $mech1->{content}; (my $stream_chunk) = $stream2 =~ /bottomPagingCell(.*)bottom/; # <---- + fails here if (/javascript:SubmitFormPost\(\"(.*)\"\)/) { mech1->get($1); } else { # no new page }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: quotes in HTML killing regex
by graff (Chancellor) on Nov 01, 2008 at 03:38 UTC | |
|
Re: quotes in HTML killing regex
by AnomalousMonk (Archbishop) on Nov 01, 2008 at 16:51 UTC | |
|
Re: quotes in HTML killing regex
by Anonymous Monk on Nov 01, 2008 at 02:27 UTC | |
by jhoskins98 (Initiate) on Nov 01, 2008 at 10:52 UTC |