Use PCRE regular expressions. Normalise API