Regular Expressions (RegEx) Syntax Validation Functions written in PHP