Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: A question on Regex

by kiruthika.bkite (Scribe)
on Mar 25, 2010 at 04:02 UTC ( #830717=note: print w/ replies, xml ) Need Help??


in reply to A question on Regex

use strict; use warnings; my $mystring = "http://192.162.143.201/nightly_results/2009_12_02/log_ +lcla114.ping.com_64.html"; if($mystring=~/(.*)\/(.*)/) { print "File Name : $2"; }

Output
File Name : log_lcla114.ping.com_64.html


Comment on Re: A question on Regex
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2014-08-29 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (275 votes), past polls