Tuesday, June 19, 2007

C# Regular Expressions

some simple regexes for simple string processing

get filename from url (full filename)
([^\\\\]*$)

get extension from url (full filename)
(?<=\\.)([^\\\\]*$)

No comments: