in reply to Help with regular expression

Put the regular expression in code tags
<c> $_ = 'the string of your input'; /theregesofyourprogram/g; </c>

Replies are listed 'Best First'.
Re^2: Help with regular expression
by heman (Novice) on Nov 12, 2014 at 03:04 UTC
    regular expression: $_=~/\b(\s*([a-zA-Z ]+)\s((-?[0-9]){1,2})\b)/g

      Please note that you could (and IMHO should) have added code tags in the OP above rather than in a separate node.