in reply to regex: negative lookahead
print "has_matched $has\n" if $has =~ /^($start(\w+(,\s)?)+)(?<!$end)$/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex: negative lookahead
by svenXY (Deacon) on Dec 05, 2011 at 16:08 UTC | |
by kennethk (Abbot) on Dec 05, 2011 at 16:38 UTC |