I need a regular expression that accepts everything except numbers and ( & ).
I'm trying but I can't seem to get it.
Can anybody help me with this regex hell?
Example:
Hans Pedro (23123123) should be Hans Pedro. But the format can be different anytime.
You can use:
^[^0-9()]+$
Something like so: ^[^\d()]+$ should do what you need. It will start from the beginning of the string (^) and match one or more characters which are not a digit (\d) or a bracket. It will keep doing this till it finds the end of the string ($).
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