I'm trying to figure out why the regex code below gives me two different results, depending on where I use it.
[A-Z]{0,1}[a-z]{2,}[:]
On phpliveregex.com, the above regex code matches the following:
narrator:
Narrator:
When used in preg_match, the above regex code matches the following:
narrator:
Narrator:
NARRATOR:
PS I'm not sure this is a relevant forum. I saw a bunch of regex questions on DANIWEB, but now that I'm trying to add my own question, the tags I am offered have nothing to do with PHP or REGEX.