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

(ichimunki) Re x 4: Extract string from rear of string

by ichimunki (Priest)
on Dec 28, 2001 at 22:49 UTC ( #134936=note: print w/replies, xml ) Need Help??

in reply to Re: Extract string from rear of string
in thread Extract string from rear of string

Begging your pardon, but the split shown returns the last bit of stuff after the final dot, which I think complies with the rather vague request of getting the extension. In your example, the extension is 'gz' after all. That's the beauty of negative indices, they work from the other end.
  • Comment on (ichimunki) Re x 4: Extract string from rear of string

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://134936]
[choroba]: Good morning! I'll be mostly absent today, a day off at work, children have concerts and other activities...
[Corion]: Hi choroba! Yay, day off sounds great! I hope the performances of the kids go well!

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2017-12-12 08:47 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (327 votes). Check out past polls.