Cheking two PCRE syntax for Validation.