I have written a RegEx syntax which also works, but I fear I am missing something or maybe there is a more elegant way too achieve what I need.
Link: https://regex101.com/r/KZxt9I/1
Goal is to get whatever price there is before the term "EUR":
- Sometimes the price is written like the first match -> integer (no Cents)
- Sometimes the price is written like the second match -> double (with comma due to Cents)
As you can see in the first match there is also ",-" before "EUR" and in the second match the string does not have ",-" before "EUR".
Is my RegEx sufficient enough in case there are more whitespaces inbetween or so?
