Trying to put a regex expression together that returns the string between _ and _$ (where $ is the end of the string).
input:
abc_def_ghi_
desired regex outcoume:
def_ghi
I've tried quite a few combinations such as thsi.
((([^_]*){1})[^_]*)_$
any help appreciated.
Note: the regex above returns abc_def, and not the desired def_ghi.