Regex for slash followed by any number -
what right way of writing regex states:
/ followed number
for example, gets fired "/1", "/2", not "/a" etc.
pcre
/\/\d/ this match '/' followed single character number number.
/\/\d+/ this match '/' followed set of consecutive numbers.
/^\/d+$/ this match '/' followed set of consecutive numbers thing on line.
regex
No comments:
Post a Comment