chen li wrote on Fri, Sep 08, 2006 at 09:34:03AM PDT: > One more question about this regex: > > @data = m/(\D+[^\d\s]|\d+)/g; > > I check Programming Perl or perldoc they say ^ is used > as an anchor meaning "start/begining with". But here > looks like it has a different usage. Is that right? Yes, ^ has more than one meaning. When ^ is the first character inside a character class, it is used to invert the character class. If you have Programming Perl (3rd edition) look at page 166. For perldoc, look at perlretut, under the section "Using character classes".
- David -- "It may be true that the law cannot make a man love me, but it can stop him from lynching me, and I think that's pretty important." -- Martin Luther King Jr. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>