I have a text :
Revenue: $12.9 billion Regex=====>Revenue\W+(\$*\s*\d+\s*(\.\s*\d+)*)\s*billion Now I want $12.9 in a specific group but by using \W+ it takes ": $" after revenue. So I want to write such regex that it will consider all nonalphanumeric character except "$"
How can I do that???