Refactored simple string scanning regexp to const
[git-p4: depot-paths = "//src/ruby_parser/dev/": change = 8861]