Added RegEx validation for the expectation value