开发者

Looking for a regex to test for filenames with multiple extensions

I am looking for regular expression to test for files with more than one extensions, i.e test.1.log.old

Thank开发者_如何学Pythons, M.


If you are only testing filenames, then this will work.

(.[^.]+\.){2}

You may need to modify the regex if you try to match against more than file names (path).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜