Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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

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 chanting in the Monastery: (3)
As of 2016-08-30 05:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (411 votes). Check out past polls.