in reply to Can't match negated words.
Can anyone explain what is mean by clustering and capturing?
Or even the difference between them?
I'm reading the docs and came across this.
This is for clustering, not capturing; it groups
subexpressions like "()", but doesn't make backreferences
as "()" does. So
@fields = split(/\b(?:a|b|c)\b/)
is like
@fields = split(/\b(a|b|c)\b/)
Thanks,
Mark.
Or even the difference between them?
I'm reading the docs and came across this.
This is for clustering, not capturing; it groups
subexpressions like "()", but doesn't make backreferences
as "()" does. So
@fields = split(/\b(?:a|b|c)\b/)
is like
@fields = split(/\b(a|b|c)\b/)
Thanks,
Mark.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Can't match negated words.
by Roy Johnson (Monsignor) on Jun 24, 2004 at 17:38 UTC |
In Section
Seekers of Perl Wisdom