0
4

2 回答 2

2

I would go with something like this

a.replace(/^.*?([0-9]+),([0-9]+)\s*€\s*$/, "$1$2")

https://regex101.com/r/FHOYja/1

于 2019-03-11T14:29:01.943 回答
0

A regex to grab everything after the first "€ " would be (?<=€ ).*$ example on regex101:https://regex101.com/r/pULCel/1

于 2019-03-11T14:21:34.907 回答