login about faq

I feel like there's got to be a very elegant way to parse out the filename from a path string..


I'd like that to be /path/to

Now, I know there's methods in the CkString to tokenize, split strings, etc, which I'm more than happy to do, but I expect I'm not alone in doing this, anyone else have a more elegant solution than splitting and walking the split strings?



asked Dec 05 '12 at 20:09

hazmat's gravatar image


edited Dec 05 '12 at 20:10

You did not add which programming language you are using.

(Dec 10 '12 at 09:12) roan98dk
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Dec 05 '12 at 20:09

Seen: 1,588 times

Last updated: Dec 10 '12 at 09:12

powered by OSQA