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.
在 Mac OS X 上,我正在尝试expr从 URL 字符串中提取 IP 地址。
expr
expr tcp://192.168.59.103:2376 : '^\([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\)'
这将返回一个空字符串。