Re-fixed regex capture in previous - refs #70

$str was no longer being 'eaten' by the loop.