Skip to content

Instantly share code, notes, and snippets.

Created November 19, 2013 03:28
What would you like to do?
Validate Version using Javascript
function validateVersion(version){
var pat=/^[0-9]{1,3}.[0-9]{0,3}.[0-9]{0,3}$/;
return pat.test(version)
Validate Version
var version="10.2.5";
alert("Valid Version");
alert("Invalid Version");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment