Hi, I have a recurring pattern like this...
I am trying to figure out a regex that will find anything matching the table and two breaks, and then a wildcard, the nbsp another wildcard, the second nbsp, another wildcard, and then end on the closed br tag.
I hope that made sense.
I know this is TOTALLY wrong, but here's what I started with.
I would greatly appreciate your help figuring this out. Thanks!
Code:
</table>
<br>
<br>
ACME Co.
<br>
123 Main St.
<br>
Smallville
FL
12345
<br />
I am trying to figure out a regex that will find anything matching the table and two breaks, and then a wildcard, the nbsp another wildcard, the second nbsp, another wildcard, and then end on the closed br tag.
I hope that made sense.
I know this is TOTALLY wrong, but here's what I started with.
Code:
Pattern p = Pattern.compile("^.*</table><br><br>.* .* .*<br />$");
Matcher matcher = p.matcher(html);
if (matcher.matches()) {
System.out.println(matcher.group());
}
I would greatly appreciate your help figuring this out. Thanks!