symfony/symfony — pull request #12235 by webmozart (2014-10-16 13:11:58+00:00)
Title: [Validator] Fixed Regex::getHtmlPattern() to work with complex and negated patterns

| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #5307
| License | MIT
| Doc PR | -

According to my own testing, this should fix the generation of HTML patterns when `Regex::$match` is set to false. Additionally, patterns containing pipes (or statements) are fixed. See the test cases for examples.