> The caret at the start of a character class negates the > sense of the class, so /[abcd]/ matches a character which is > any one of the four letters 'a', 'b', 'c' or 'd'. /[^abcd]/ > will match any single character except these four. In the expression
Ooooooohhhh yeah the brackets change the carrot. What a monkey I am. Thanks Rob for the clarification once again. Dan > > ($string = 'abcd foo monkey') =~ s/[^abcd]/ /g; > > the regex matches four times - once for each of the first > four characters. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]