I am trying to develop a regex expression to extract the address, sale date and sale price information from this string:
<strong id="address">1245 DUPONT ST</strong><br>Toronto : Metro Toronto<br>14 Aug 2015 $71,000,000 <font color="#CC0000"></font>
Ideally, I would like to receive the information formatted on five separate rows like this:
1245 DUPONT ST
Toronto
Metro Toronto
14 Aug 2015
$71,000,000
I suspect that the solution will involve the use of positive lookbehind because the address information can always by identified by the id="address"
, but I can't seem to get it working. Any help would be greatly appreciated. Thanks.