All right, so I'm making a template engine for my website, but I have a piece of code that's not matching anything...here it is:
preg_match_all("#<!-- BEGIN ([a-z0-9\-_\.]*?) -->(.*?)<!-- END ([a-z0-9\-_\.]*?) -->#", $tpl, $matches);
That's supposed to match <!-- BEGIN some_block_name -->Some HTML<!-- END some_block_name -->
However, it does not return anything...can someone give me an idea of what I did wrong?