Hi, I'm studying for my CIW perl exam, I've come across this question in my exam software, but it doesn't make sense, and my solution is different to the solution given.
Here is the question:
The following RE matches what patterns?
/[[^TMC]ow/
Not Mow
Mow at the beginning of a string
Not Cow
Cow at the beginning of a string
Tow at the beginning of a string
Not Tow
The given solution is 'Not Mow,Not Cow,Not Tow', but when I run it, I get all of them as matches... Its the extra [ that I don't understand, can anyone explain whats going on. :rolleyes:
Thanks very much, I am very grateful for your help