Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

regex for accepting mobile number only in 10 digit

Copy CodeRegex reg = new Regex(@"^[0-9]{10}$");
string inputOK = "9876543214";
string inputBad1 = "876543214";
string inputBad2 = "09876543214";
if (reg.IsMatch(inputOK)) Console.WriteLine("OK");
if (!reg.IsMatch(inputBad1)) Console.WriteLine("OK");
if (!reg.IsMatch(inputBad2)) Console.WriteLine("OK");
Comment

india mobile number 10 digit number regex

/^(?:(?:+|0{0,2})91(s*|[-])?|[0]?)?([6789]d{2}([ -]?)d{3}([ -]?)d{4})$/
Comment

regex phone number 10 digit

^(+d{1,2}s)?(?d{3})?[s.-]?d{3}[s.-]?d{4}$
Comment

PREVIOUS NEXT
Code Example
Javascript :: iso string to timestamp javascript 
Javascript :: javascript howto get xhr 
Javascript :: set empty to input date js 
Javascript :: ajax call with form data 
Javascript :: findmany mongoose or find by multiple Ids 
Javascript :: button group get value 
Javascript :: linebreak-style eslint 
Javascript :: jquery to set value in select2 dropdown button 
Javascript :: js round up decimal 
Javascript :: jquery loop through class inside the div 
Javascript :: javascript remove element from array 
Javascript :: trigger key jquery 
Javascript :: @react-navigation/native unmount inactive 
Javascript :: nodejs remove unsafe string 
Javascript :: how to only accept email in the format of name@domain.com js 
Javascript :: else if shopify liquid 
Javascript :: add last element in array javascript 
Javascript :: how to remove angular package 
Javascript :: json parse stringified array 
Javascript :: gradle json simple dependency 
Javascript :: sentido etimología 
Javascript :: get most reapead aphpabet js 
Javascript :: how to limit the number of items from an array in javascript 
Javascript :: react-dom.development.js:86 Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. 
Javascript :: filter number in string javascript 
Javascript :: .map for object javscript 
Javascript :: router class in backbone 
Javascript :: javascript number to number with commas 
Javascript :: character to ascii javascript 
Javascript :: how to add attribute to selected element in javascript 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =