!$_ /;\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.
In reply to Re^5: regex basics
by choroba
in thread regex basics
by jott19
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |