You can split the line with the _ character and take the last line of the result array, and then split it. character and take the first line of the result array.
in js
test.split('_')[1].split('.')[0];
CS uses the SubString and IndexOf methods for the String class.
source
share