in reply to Re: minimal match regular expression
in thread minimal match regulara expression

bravo, thanks

Replies are listed 'Best First'.
Re^3: minimal match regular expression
by james28909 (Deacon) on Mar 03, 2015 at 16:56 UTC
    you can also:
    use warnings; use strict; my $match, $pruned = split(/_/, $_); print $match
    at work so cant* test it haha

      ... and it doesn't work haha.

      Tested, works:

      c:\@Work\Perl>perl -wMstrict -le "$_ = 'wppwd01a0099_NET_basp_virtual_adapter'; my ($match) = split(/_/, $_); print qq{'$match'}; " 'wppwd01a0099'


      Give a man a fish:  <%-(-(-(-<