in reply to Re: Split string only on regular expression match
in thread Split string only on regular expression match
It should be:my @got = $search_c =~ /^(?!\w)|(\.[^.]+)$/ig ? [] : split //, $strin +g +_c;
Thanks!my @got = $string_c =~ /^(?!\w)|(\.[^.]+)$/ig ? [] : split //, $string +_c;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Split string only on regular expression match
by Anonymous Monk on Oct 31, 2017 at 17:52 UTC |