Optimize regular expressions in the sha computer
Optimize regular expressions in the sha computer

This uses possessive quantifiers whenever possible, to prevent useless backtracking.
nelmio/NelmioSecurityBundle