I have the following text:
There are 12.800.500 sorts of animals.
Now, I want to get 12.800.800 as the output, when I search for "sorts". How could I do that? I tried
\d+(?= sorts)
but this gives me only "500" as a result and not the whole number with dots. How can I make sure I get "everything" before "sorts" until the first space?
Thanks!