Hi,
I'm not a perl programmer, but I can chop and change things when I find the right code. On this occasion I need to do just that but can't find it, I hope someone can help me!
It's pretty simple I think. Basically I have a string which consists of "One thing/The second thing/The Third Thing" and want to extract everything after the last slash, i.e "The Third Thing". There may be one slash or hundreds of slashes in the string. Some might not have any slashes though so there needs to be an if statement to check... i.e. if the string was "Hello" the output should be "Hello"
Thanks very much in advance,
Pat
I'm not a perl programmer, but I can chop and change things when I find the right code. On this occasion I need to do just that but can't find it, I hope someone can help me!
It's pretty simple I think. Basically I have a string which consists of "One thing/The second thing/The Third Thing" and want to extract everything after the last slash, i.e "The Third Thing". There may be one slash or hundreds of slashes in the string. Some might not have any slashes though so there needs to be an if statement to check... i.e. if the string was "Hello" the output should be "Hello"
Thanks very much in advance,
Pat