in reply to Re: using split without $junk
in thread using split without $junk
Because you know where you want to stop matching, you really should drop .* and use a negated character class instead:my ( $keep ) = $string =~ /^(.*?)\|/;
my ( $keep ) = $string =~ /^([^\|]+)/;
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: using split without $junk
by davido (Cardinal) on Nov 24, 2003 at 18:53 UTC |