110,545
社区成员
发帖
与我相关
我的任务
分享
Regex reg = new Regex(@"^(?:120|0|1[01]\d|[1-9]\d?)度(0|60|[1-5]\d?)分(60|60\.[0]+|0|0\.\d+|[1-9]|[1-9]\.\d+|[1-5]\d|[1-5]\d\.\d+)秒$");
string input = "120度38分54.326785秒";
bool isMatch = reg.IsMatch(input);