scala/scala — pull request #3343 by som-snytt (2014-01-08 21:14:49+00:00)
Title: SI-8107 Add Regex.quoted

Add `quoted` as an instance method of Regex.

Change `pattern` to a lazy val to defer compilation.

This makes the regex string the primary representation,
reverting a previous change that preferred the compiled
pattern.

This is complementary to https://github.com/scala/scala/pull/3317.