in reply to Re^4: regex basics
in thread regex basics
!$_ /;\s+/ !/\#\s+/
In fact, when you want to mention the thing to be matched, you must use the binding operator:
!( $_ =~ /;\s+/); # or $_ !~ /;\s+/;
Update: Precedence fixed. Thanks AnomalousMonk.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: regex basics
by AnomalousMonk (Archbishop) on Feb 02, 2015 at 19:13 UTC | |
|
Re^6: regex basics
by Anonymous Monk on Feb 04, 2015 at 07:18 UTC |