Changing regular expression pattern