خرید بک لینک

Vote count: 0

I need to allow following integers:

-1, 0, 1, 2, 3, 4 and so on

Here is the regex I was trying:

/^[-0-9]+$/gm

Here are the results:

-1   //true, its fine
-2   //true, should be false
-    //true, should be false

How can I allow range from -1 to any +ve integer?

asked 28 secs ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 28 تير 1395 ساعت: 18:11

صفحه بندی