I have input lines as below
1) ISBN_9781338034424_001_S_r1.mp3
2) 001_Ch001_987373737.mp3
3) This is test 001 Chap01.mp3
4) Anger_Cha01_001.mp3
and I use the regex below to select "001" in the TrackNumber group
(?:(?<TrackNumber>\d{3})|(?<Revision>r\d{1}))(?![a-zA-Z])
However, the above also selects β978β, β133β, β803β, etc. to the TrackNumber group (examples 1 and 2).
How to change the above expression to select only β001β in TrackNumber?
-Alan -
source share