re-pattern only used for pattern attribute.
Merge pull request #162 from verdammelt/patch-4

re-pattern only used for pattern attribute.