Regex and unicode

前端 未结 4 532
死守一世寂寞
死守一世寂寞 2020-12-03 04:51

I have a script that parses the filenames of TV episodes (show.name.s01e02.avi for example), grabs the episode name (from the www.thetvdb.com API) and automatically renames

4条回答
  •  情话喂你
    2020-12-03 05:29

    In Mastering Regular Expressions from Jeffrey Friedl (great book) it is mentioned that you could use \p{Letter} which will match unicode stuff that is considered a letter.

提交回复
热议问题