|
|
| No such thing as a small change | |
| PerlMonks |
Re: Code Smarterby salvadors (Pilgrim) |
| on Dec 31, 2000 at 22:22 UTC ( #49115=note: print w/ replies, xml ) | Need Help?? |
|
So, what's the best way to find of a string ends with a given substring? On another thread I posted example code for finding all your .mp3 files, and I used rindex, but I dawned on me later that that would also find false negatives like: "foo.mp3.gif" So what's the best replacement for m/.mp3$/? Tony
In Section
Meditations
|
|
||||||||||||||||||||||||||