The following regex
var re = /(?<=_)\d*/g
extracts the bitrate from filenames that follow a naming convention like filename_bitrate.ext
It works for most filenames -
asdfasd_400.mp4
asdfasd_600.mp3
asdfasd_1000.mxf
Some files follow the same convention but my regex can't parse them. Ex -
BLIVE_CEOFoC_210720_1245_400.mp4
I want to basically extract the number before the .ext. How do I modify my regex to work with any filename?