Backport regex to work on Ruby 1.8