Reputation: 1572
I've writing code using Regex format to search for numbers that has signs before it either: + , - or space like the following numbers :
(+02.00)
(-03.50)
( 00.00)
I'm using this format but i want to include space with +-
[+-]\d{2}.\d{2}
Please help , thanks.
Upvotes: 1
Views: 98
Reputation: 785146
You can use:
[+\s-]\d{2}\.\d{2}
\s
in the first character class [...]
that will match a whitespace.Upvotes: 1