Fixed PDF bug + added full RegExp support.