I don't think you need to add `\s!\w*`, all you need to add is `!`. The regular expression already has `\w` and `\s` within the square brackets. Here is an example of the regular expression in action http://rubular.com/r/2voRNjFPBk.