我很难将以下csv类型的输出与正则表达式匹配。例如,使用:
Ten Thousand,10000
Ten thousand
helloasdf,x
我想也许我可以使用基本的:
# start at either the start-of-line or a comma
(^|,)
# consume up through a comma (though end-of-line will not have that
[^,]*
# go until the next comma or end of line
($|,)
但是,即使我将其包装在一个组中并尝试重复该操作,此操作也不起作用。我在这里做错什么事?链接到这里:https://regex101.com/r/AmzZ8n/1