For the given pattern /^[01]?\d/[0-3]\d/\d{4}$/ present one string that will be accepted by the pattern and another stri
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
For the given pattern /^[01]?\d/[0-3]\d/\d{4}$/ present one string that will be accepted by the pattern and another stri
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.