May-01-2023, 05:12 AM
(This post was last modified: May-01-2023, 03:24 PM by deanhystad.)
I don't understand. In the example below should it print 0090 or not?
import re pattern = re.compile(r'DJI_(\d+)') matches = re.findall(pattern, 'DJI_0991.MP4 DJI_0992 - testing.MP4 DJI_0090 - part 1.MP4') print (matches)
Output:['0991', '0992', '0090']