01-09-2014, 11:34 AM
It is because of flag 2 - whole word.
Flag 2 makes the regular expression "\b\s\d+\s\b".
Characters space and \ are both non-word characters, therefore there is no word boundary.
Flag 2 makes the regular expression "\b\s\d+\s\b".
Characters space and \ are both non-word characters, therefore there is no word boundary.
