PY
py
1
2
3
4
5
6
7
8
9
10
11
import re
var="test_13345688_20_8_2021"
result=re.search('_(.*)_',var)
result2=result.group(1)
print(result2)
#need 13345688 and 20 and 8
#values which are between underscore
print(var.split('_')[1:-1])
# should works as you want
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run