Reputation: 28284
Hi any idea what this is matching thanks
preg_match('/^[1-8](0|5)$/', $myValue)
Upvotes: 0
Views: 86
Reputation: 51950
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).
Upvotes: 1
Reputation: 4211
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
Upvotes: 1
Reputation: 354566
Upvotes: 4
Reputation: 284836
Beginning of string, digit from 1-8, capturing group matching either 0 or 5, end of string.
Upvotes: 4