I use python, for example, I have a string like this:
a good 98.15% play
it should match 9815,
a good 98,15% play
it should also match 9815,
a good 100% play
it should match 100
a good 98% play
it should match 98
I have tried to use (?<=\s)\S+(?=\%)
to match the whole 98.15 but there are more people using comma to separate decimal number than I thought and I tried to use other regex but there aren't any I could think of that satisfy my problem.