Using the PCRE library and native regex libraries from Java and C#