Quantcast
Channel: What is a word boundary in regex? - Stack Overflow
Viewing all articles
Browse latest Browse all 14

Answer by AnubhavShakya for What is a word boundary in regex?

$
0
0

Word boundary \b is used where one word should be a word character and another one a non-word character.Regular Expression for negative number should be

--?\b\d+\b

check working DEMO


Viewing all articles
Browse latest Browse all 14

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>