Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

positive look behind regexp mystery

by rovf (Priest)
on Aug 01, 2008 at 08:17 UTC ( [id://701618]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    my $fn="abc/def.xyz";
    $fn =~ s/($<=[.])[^.]*$/txt/;
    print "$fn\n";
    
  2. or download this
    $fn =~ s/[^.]*$/txt/;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-18 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found