Fix regex for 1.8.7 compatibility

Negative lookbehind is not supported in 1.8.7