substr question

Post Reply
Mr. Bigglesworth
Posts: 56
Joined: Fri Feb 16, 2001 6:54 pm

substr question

Post by Mr. Bigglesworth »

If I have a string like so:

"e:\webs\myfile"

And I want to extract out the portion after the final "\", (meaning "myfile"), what's the best way to do that?
bart
Posts: 251
Joined: Wed Apr 26, 2000 12:42 am

substr question

Post by bart »

<rex "[^\\]+>>=" $string>
Post Reply