For the given pattern /^[01]?\d/[0-3]\d/\d{4}$/ present one string that will be accepted by the pattern and another stri
Posted: Fri Jul 08, 2022 6:35 am
For the given pattern /^[01]?\d/[0-3]\d/\d{4}$/ present onestring that will be accepted by the pattern and another string thatwill not be accepted by the pattern. Code the pattern and the inputstrings in preg_match(). Display the values returned bypreg_match() for both valid and invalid input strings.