I need to preg_match()
a pattern in PHP and no matter what I do I get errors.
I've looked all over the net and can't find anything that tells me what I'm actually doing wrong.
Here's my preg_match
pattern:
preg_match('/\MyApp\Library\Task\/', '\MyApp\Library\Task\Db\Generate');
It always returns an array, what do I do wrong? How can I get my regex to work properly?