Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: nvirdiHi, I need to extract a file extension from a string, but the problem is, there can sometimes be multiple dots within the string name, such as file.file2.xls or file.s..d.doc, etc... My final output would just contain .xls and .doc. I know I can use the strFind function to find the position of the dot, and then take everything to the right, but when there are multiple dots within the file name, it is returning everything after the occurrance of the first dot.
Ex:
Input string: joe.file.xls
output: .xls
Thanks