on 07-27-2015 2:41 PM
Hi All,
Please share any function or idea to extract file name from right left.From the below path, File name will change dynamically ( using wait_for_file function to get the file name but it is returning complete path ) and I need to extract only the file name which is before "/" from right.
$GV_FILE_NAME /test/eRW/MainFrame/Acknowledge_Files/Correct_Confirm_1.TXT
word_ext( $GV_FILE_NAME, -1, '/');
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What had you expected ?
But this time, I cannot say RTFM, because it's one of those undocumented DS features. The DS Reference Guide says about word_ext(<string>, <word_num, separator(s)>):
<word_num>:
A nonnegative integer specifying the index of the target word in the string. The first word in a string is word number 1. If <word_num> is 0 or greater than the number of words in <string>, then the word function returns a NULL string.
But it works for negative integersn, as well!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you provide me an example ??
Is this something similar ?? but it is not quite understandable.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.