changed gsub pattern

Please verify as you are much better at regular expressions than I am!