Check If first character is "+"
You don't need \s*?
, you have to use:
^\+
or...
^[+]
In case you want to check a complete string, you can use:
^\+.*$
Working demo
You don't need \s*?
, you have to use:
^\+
or...
^[+]
In case you want to check a complete string, you can use:
^\+.*$
Working demo