Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $pattern = "/[\b[A-Z0-9]{1}\/{1}[A-Z0-9]{2}\/{1}[0-9]{6,7}-{1}[0-9]{2}\b]/";
- $sample = '1/0Z/1234567-15';
- if(preg_match($pattern, $sample))
- {
- echo 'Match found';
- } else {
- echo 'Not found';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement