更新时间:2023-02-22 11:50:08
为此不需要正则表达式.只需使用 some_string.split(' ', 1)[0] 或 some_string.partition(' ')[0].
some_string.split(' ', 1)[0]
some_string.partition(' ')[0]
Regex is unnecessary for this. Just use some_string.split(' ', 1)[0] or some_string.partition(' ')[0].
如何在C ++中使用Curl获取HTTP响应字符串
如何从字符串中获取url并将其存储到另一个字符串中“
如何在 JavaScript 中获取查询字符串值?
如何在Java Play框架中获取查询字符串参数?
如何在javascript中获取查询字符串值
如何在JavaScript中获取查询字符串值?
从标签中的href获取查询字符串参数
使用 AngularJS $location 从 URL 中的查询字符串获取值
如何使用javascript获取查询字符串值
如何使用bash从URL字符串获取尺寸