how to find number in string js
// To find a number in a string
const str = "sdfh0d5f6"
const result = str.match(/\d+/g)
console.log(result)
// ['0', '5', '6']
how to find number in string js
// To find a number in a string
const str = "sdfh0d5f6"
const result = str.match(/\d+/g)
console.log(result)
// ['0', '5', '6']
javascript find number in string
the regular expression on looks for the first number character in the string
let numberInString = theString.match(/\d+/[0];
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us