Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
On the expression field of a tMap I use the following :
(String)globalMap.get("tFileList_1_CURRENT_FILE")
This variable can have for instance the followings values :
SERVER11_20160101.log
SMTPSERVER11_20160101.log
I would like to get the value betwwen _ and . i.e. 20160101
Could you please tell me how I can do that in the simplest way ?
Thanks in advance
Regards
Frey1
((String)globalMap.get("tFileList_1_CURRENT_FILE")).substring(((String)globalMap.get("tFileList_1_CURRENT_FILE")).indexOf("_")+1, (((String)globalMap.get("tFileList_1_CURRENT_FILE")).indexOf(".log")));
myValue.substring(myValue.indexOf("_")+1, myValue.indexOf(".log"));