Translated (deprecated) POSIX functions to PCRE, fixing #441
Merge pull request #475 from NicNLD/upload-regex

Translates (deprecated) POSIX functions to PCRE, fixing #441