alhassani54
Programmer
I have a variable which contains a delimiter and the value between the delimiter can be various.
i.e.
a=1234~56789~asdfgt~jfdhjrhtj~nvcnvcn
or it could be
a=12~q~jjjjjjj~erorioe~90~9824
A script to return a value for a specific delimiter.
Script name “retval”
By entering :-
retval “12~q~jjjjjjj~erorioe~90~9824” “~” 1 3
This will return:-
12~q~jjjjjjj
or by entering:-
retval “12~q~jjjjjjj~erorioe~90~9824” “~” 4 5
The script will return:-
erorioe~90
Any help will be appreciated.
Thanks
i.e.
a=1234~56789~asdfgt~jfdhjrhtj~nvcnvcn
or it could be
a=12~q~jjjjjjj~erorioe~90~9824
A script to return a value for a specific delimiter.
Script name “retval”
By entering :-
retval “12~q~jjjjjjj~erorioe~90~9824” “~” 1 3
This will return:-
12~q~jjjjjjj
or by entering:-
retval “12~q~jjjjjjj~erorioe~90~9824” “~” 4 5
The script will return:-
erorioe~90
Any help will be appreciated.
Thanks