ip address pattern regex javascript
function ValidateIPaddress(ipaddress)
{
if (/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(myForm.emailAddr.value))
{
return (true)
}
alert("You have entered an invalid IP address!")
return (false)
}
Also in JavaScript:
- js remove the last character of a string
- jquery first child
- how to routing in react js
- dom ready js
- javascript random number between 0 and 10
- npl live server doesn't load js
- square root javascript
- javascript for loop that prints 10 times
- how to get property names from object using map method react
- clear all intervals javascript
- js remove item array
- how to display first value of an array in jquery
- can we get the value of form control after disabling it angular
- js create json array
- create-react-app
- how to call function from another js file in react native
- how to get csrf token in javascript
- how to use the map method in javascript
- The server responded with error 50007
- react router 404 redirect
- single node elasticsearch with enable security basic in docker
- how to use function in javascript
- javascript override shortcut
- python object to json