regex issue

mhartwig

Member
Licensed User
Longtime User
Cant get the regular expression to match. I want all three groups.

B4X:
matcher1 = Regex.Matcher("SRC=" & Chr(34) & "(.*?)" & Chr(34) & " width=" & Chr(34) & "42" & Chr(34) & "></a></TD> <TD align=" & Chr(34) & "center" & Chr(34) & "></TD> <TD><a HREF=" & Chr(34) & "javascript: OpenDetail\(" & Chr(39) & "(.*?)" & Chr(39) & "\)" & Chr(34) & " onmouseover=" & Chr(34) & "window\.status=" & Chr(39) & "Open Detail" & Chr(39) & "; return true;" & Chr(34) & " onmouseout=" & Chr(34) & "window\.status=" & Chr(39) & Chr(39) & "; return true;" & Chr(34) & ">(.*?)<br>", s)

I want to match this source:

B4X:
<TR ALIGN="left" VALIGN="top" NOWRAP >
              <!--TD VALIGN="middle"><IMG BORDER="0" SRC="%%111%" WIDTH="10" HEIGHT="10" ALT="Address%%101%Disclosable"></TD-->
              <TD align="center"><a HREF="javascript: OpenDetail('18603060H6859')" onmouseover="window.status='Open Detail'; return true;" onmouseout="window.status=''; return true;"><IMG BORDER="0" SRC="http://216.223.229.19/maps/18603060H6859thb.jpg" width="42"></a></TD>
              <TD align="center"></TD>         
              <TD><a HREF="javascript: OpenDetail('18603060H6859')" onmouseover="window.status='Open Detail'; return true;" onmouseout="window.status=''; return true;">SMITH,ADAM<br><FONT SIZE="-1" COLOR="#FF0000">More Info</FONT></a></TD>         
              <TD>Specific address not subject to disclosure<BR> </TD>
              <TD></TD>
              <TD align="center"></TD>
           <TD></TD>
            </TR>

It worked in C#, but Basic does not do string literals. I had to do string concatenation and it quit working.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…