Possible Duplicate:
How do I extract PART of a specific string from a huge chunk of ugly strings?
String:
https://company.zendesk.com/api/v2/tickets/33126.json
I need the number 33126.
What’s the optimal way to extract this number?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since that is a path/url, use
Path.GetFileNameWithoutExtension:I would prefer
Path, but if you want to use theUriclass instead, you can also use this: