标签: regex
值:Mumbai, India (June 8)
Mumbai, India (June 8)
使用下面的代码提取了June 8:
June 8
Regexp_replace(Extract_Regexp("Mumbai, India (June 8)" ,r"\((.*)$"),r"\)(.*)","")
从8中提取"June 8"的代码:
8
"June 8"
Extract_Regexp("June 8" ,r"\ (.*)$")
June
答案 0 :(得分:1)
这可能是您有所了解。
[^\d ]+ Match value: 1. june
https://rubular.com/r/3OR5xSF1gE1rrt