Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Regex To Remove File Extension (rindex)

by kyle (Abbot)
on Dec 10, 2008 at 19:44 UTC ( #729492=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $n = 'foo.bar.txt';
    $n = substr $n, 0, rindex( $n, q{.} );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://729492]
help
Chatterbox?
[karlgoethebier]: holli: total underestimation of Keith...
[karlgoethebier]: ...a common mistake ;-)
[LanX]: a "tone deaf" is the word I was looking for.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2017-12-13 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (375 votes). Check out past polls.

    Notices?