Hi any idea what this is matching thanks
preg_match('/^[1-8](0|5)$/', $myValue)
Hi any idea what this is matching thanks
preg_match('/^[1-8](0|5)$/', $myValue)
Beginning of string, digit from 1-8, capturing group matching either 0 or 5, end of string.
This might be useful to you, enter the regular expression and view for yourself:
The site will depict what a given regular expression will match
It matches an occurrence of 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, or 85 (with a trailing newline character \n if one is present).