Regular expression to match only the first file in a RAR file set

后端 未结 4 793
半阙折子戏
半阙折子戏 2021-01-16 00:39

To see what file to invoke the unrar command on, one needs to determine which file is the first in the file set.

Here are some sample file names, of which - naturall

4条回答
  •  情话喂你
    2021-01-16 01:04

    Personally I wouldn't use (extended) regular expressions in this case (or at least not just one to do it all). What's wrong with coding this in, for example, a few ifs?

提交回复
热议问题