Hello,
Here's a short regex example:
preg_match_all('~(\s+|/)(\d{2})?\s*–\s*(\d{2})?$~u', 'i love regex 00– / 03–08', $matches);
print_r($matches);
The regex only matches '03–08', but my intention was matching '00–' as well. What is the problem? Anyone could explain?