Improve rspec substitution regexp