As the title says, I need to create a regex that matches $
and any following space after it. Example:
"asd $ 5" should match "$ ".
Is is possible? I could find anything like that.
You may use the following regex:
[$]\s+
[$]
will match the dollar sign, and \s+
will match one or more spaces after the dollar sign.
See test example here: https://regex101.com/r/Y4j98L/1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With