I have the following expression
diff_pr_EUR-44_cordex_rcp45_mon_ave_2048-2060_minus_2005-2017_mon10_ave1_withsd.nc
I would like to use regex to extract and generate the following string
rcp45_mon10
I have tried this so far with the online regex tester
rcp\d\d[^.]+mon\d+
Which extracts more than what I need...
rcp45_mon_ave_2048-2060_minus_2005-2017_mon10
How can I get regex to skip subsequent characters until it reaches the mon10 part?
Thanks