Allow underscore before character to match in second alteration

A quick test at http://rubular.com/r/YkPh9ZROVi indicates it still works. I had to change \A to ^ to test multiple inputs on Rubular.