正则表达式匹配 xxxxx:xxxxxx:xxxxxx:xxxxx:

2024-11-02 17:25:58
推荐回答(3个)
回答1:

匹配这种格式的:test.c:4:6:

.+?:(\d+):(\d+):

回答2:

var reg = /[^\.]+\.[^\.]+\:([^\:]+)\:([^\:]+)/g;

回答3:

.*?:(\d+):(\d*) .*