in reply to Regex for outside of brackets
use strict; use warnings; use Test::More; my @rec = ( { have => 'THIS IS OUTSIDE (THIS IS INSIDE)', want => 'THIS IS OUTSIDE ' }, ); plan tests => scalar @rec; for my $this (@rec) { my ($have) = $this->{have} =~ /^([^(]*)/; is ($have, $this->{want}) }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex for outside of brackets
by theravadamonk (Scribe) on Jul 13, 2018 at 17:45 UTC |