I’m searching a string for a certain pattern.
$string = "Monday: 08.00-18.00";
$pattern = "xx.xx-xx.xx";
The “x” could be “0”, “1”, “2”, “3”, “4”, “5”, “6”, “7”, “8” or “9”.
The “-” must be a “-“.
The “.” could be “.” or “:”.
Is there a way to this this?
You want something like