I would like to use a regex to find the word between _ and . in the filename.
Example: If the filename reads ---- abc_resend.zip
I would like my pattern to return "resend".
I tried using the following pattern: "\_([a-z]*)\."
Result: _resend.
Tried the following pattern to exclude: "(?:\\_)([a-z]*)(?:\\.)
and am still getting the same result: _resend.
What am I doing wrong? Please help.