Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: minimal match regular expression

by fionbarr (Friar)
on Mar 03, 2015 at 16:37 UTC ( [id://1118629]=note: print w/replies, xml ) Need Help??


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:  <%-(-(-(-<

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1118629]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2024-04-25 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found