1 to 9 numbers in javascript code example
Example 1: number pattern js
/^[\+\-]?\d*\.?\d+(?:[Ee][\+\-]?\d+)?$/
/*
matched values:
-2.14e10
+14E-20
42.69
*/
Example 2: "[0-9]+"
Just use regex [0-9]+ for matching a number of more than one digit. For example:
grep "[0-9]\+" file.txt