For the given pattern /^[01]?\d/[0-3]\d/\d{4}$/ present one string that will be accepted by the pattern and another stri

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
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

Post by answerhappygod »

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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply