Regular Expression for a middle string

I need to extract from the below string

2_240219_0.vnd as 240219

I have tried as follows: _[0-9]+_

This gives me _240219_

How do I remove the _ from both ends.

#c-sharp #regex

1 Likes2.55 GEEK