i want to find files in a directory that can have multiple dots. like
Could not open 'Streams/Allegro_FUNNY_A _00_HD2_10.4.tr p'
Could not open 'Streams/Allegro_FUNNY_B _00_HD2_10.4.ts '
Could not open 'Streams/Allegro_POC_CAV LC_00_5x6_10.3. ts'
Could not open 'Streams/C40UDTA.b.trp'
i could parse all other streams well but couldnt open the onces that had more than one dot.can any one correct my regex pattern?
Could not open 'Streams/Allegro_FUNNY_A _00_HD2_10.4.tr p'
Could not open 'Streams/Allegro_FUNNY_B _00_HD2_10.4.ts '
Could not open 'Streams/Allegro_POC_CAV LC_00_5x6_10.3. ts'
Could not open 'Streams/C40UDTA.b.trp'
i could parse all other streams well but couldnt open the onces that had more than one dot.can any one correct my regex pattern?
Code:
if(/\w+\...(dts|ts|trp|mpg|TRP)/)
Comment