Javascript regex for validating url

= Relational Expression | is evaluated as follows: | | 1. If Type(x) is Number and Type(y) is String, | return the result of the comparison x == To Number(y). If Type(x) is String and Type(y) is Number, | return the result of the comparison To Number(x) == y. If Type(x) is Boolean, return the result of the comparison | To Number(x) == y.

Neither pinging or dns resolution will tell you if a web server is running, though. [...] -- Rob If that's what you want, you could just use nslookup instead. In that case, `false' is returned to the calling algorithm, so ultimately `false' is returned to the algorithm of `! Without knowing what the OP's criteria are for a valid address, all we can do is toss up a few possibilities.$&'\(\)\*\ ,;=]|:) ))\])|((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|(([a-z]|\d|-|\.|_|~|[\x00A0-\x D7FF\x F900-\x FDCF\x FDF0-\x FFEF])|(%[\da-f])|[!)(\/(([a-z]|\d|-|\.|_|~|[\x00A0-\x D7FF\x F900-\x FDCF\x FDF0-\x FFEF])|(%[\da-f])|[! $&'\(\)\*\ ,;=]|:|@)*)*|(\/((([a-z]|\d|-|\.|_|~|[\x00A0-\x D7FF\x F900-\x FDCF\x FDF0-\x FFEF])|(%[\da-f])|[!

Leave a Reply