I am looking for a regex java pattern to match the following string:
[Phone Number]= 1234567890
Here:
The regex should look for hardcoded string of "[Phone Number]=” followed by space or not, and followed by
any numbers of digits.
That means it should match:
[Phone Number]= 123456 and
[Phone Number]=1234567890
Any help is appreciated.
Well, something like:
?means zero or one space\d+(after unescaping) means “at least one digit”