Here's my quick test http://pastebin.com/m484c4d5c
You can see where I added a check to capture the matches in preg_match
directly and compare $matches[0] to the supplied string. As per the php
docs[0] $matches[0] always returns the whole match. Maybe this test is
what should be returned instead of the return value of preg_match?
Is my thinking here correct? If not, what is the intended behavior of
isRegex?
Thanks,
Matt