Intelligent pattern matching in string
Let's say I have filenames which are formatted differently. I want to be able to extract certain aspects from said filename like a human would; pattern recognition. Obviously I can bruteforce myself through with regular expressions but that's not what I'm after. Let's say I have these 4 strings: [MAS] Hayate no Gotoku!! 20 [BD 720p] [21D138F8].mkv [Leopard-Raws] Akatsuki no Yona - 05 RAW (MX 1280x720 x264 AAC).mp4 [BLAST] Wolf Girl and Black Prince - 05 [720p] [C1252A5E].mkv [sage]_Mobile_Suit_Gundam_AGE_-_36_[720p][10bit][45C9E0D0].mkv As you can see all these filenames have certain pattern