I am trying to find a pattern for strings which have any other characters except
+,[0-9],- and \
. Eg: +123-\ should not be matched +232aa should be matched
I tried this:
^[a-zA-Z?\§$%&=?{}\\]*$
- a string like asdad$ is matched
- a string like +331234-44 is not matched which is what I want
- a string like 123asd or asdad123$ is also not matched but should me matched
I am not sure what I did wrong here