我是正则表达式的新手,请帮我写一个新的正则表达式。它应该适用于这些:
28
28,57,130
13-18
13,18-57,65
44-56,50-130,150,180-213
12-25,28
1024-8000,27000-30000
1024-65535
它不应该为
15,13 // 13 is less than 15
15-11 // 11 is less than 15
15-18,10
15-18,20,11-130 // because of 11
0 // port number 0 is reserved and can't be used
11-180,250,65536 // it should be less than 65535