CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions: Re: [AsiaSkyly] Help me with this regular expression!: Edit Log



wickedxter
User

Aug 24, 2011, 6:15 AM


Views: 4011
Re: [AsiaSkyly] Help me with this regular expression!

try that it will capture everything after the last _ and everthing after that


Code
  my $production_country = "PRODUCTION" . $country . "MAIN"; $file =~ /$production_country\_*\w*\_(.*)/ print $1;



(This post was edited by wickedxter on Aug 24, 2011, 6:15 AM)


Edit Log:
Post edited by wickedxter (User) on Aug 24, 2011, 6:15 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives