A small point of style, but
avoids endweight problems by pushing the modifier up front. There's also the case for always using (?msx) at the beginning of your regexes unless there's a damned good reason not to. In this case, the damned good reason not to is: "You're attempting to parse XML with a regular expression! Are you mad?"m{(?s)<div class="detailline_address">\s*(.*?)</div>}
In reply to Re^2: regex to extract text
by pdcawley
in thread regex to extract text
by jonnyfolk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |