Why is this number matched with this regex? – unix.stackexchange.com

The regex is '-?([0-9]|([1-9][0-9]))' The number is -2231 and it's being matched. From my understanding, it should be a single digit or double digits.

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Why is this number matched with this regex? – unix.stackexchange.com"