poslední pasty
How to escape variable in regular expression
# using \Q in regex $string = "Placido P. Octopus"; $regex = "P.";
Regex checking HH:MM time format
24h format. Allowed are values between 00:00 - 23:59, there _can_ be zero as first char like 08:25...
/^([01]?d|2[0-3]):[0-5]d$/