Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有一个字符串:
(GMT+09:00) Tokyo
我想匹配+09:00。
+09:00
我不太擅长正则表达式。
这个正则表达式应该工作:
[+-]\d{2}:\d{2}
试试这个,它会工作:
\+\d{2,}\:\d{2,}