I have a string which have following pattern. String will always remain same. Just numbers will be different
Showing Results (1 – 15 of 96,831)
I want to extract 96,831 from that string. I want to do this with regex. What can be regex for that? I have tried a way where I am using two regex but still not getting required number.
"Showing Results (1 – 15 of 96,831)".replace(/[a-zA-Z\(\)]+/g, '').replace(/(\d+ – \d+)/g, '')
Its output is as follow. This output contains spaces which are not required.
" 96,831"
I want a way to do this in python. Can anyone help me?
). Is it really Python? Your code is JS.