Regular expression for validating url in php Camtocam usa
'; // Anchor (optional) //$urlregex .= '(\#[a-z_\.\-][a-z0-9\ $_\.\-]*)?
While the HOST IP checks that if the hostname is of a valid type or if just an IP is given this follows IP convention.or, see this url This should work for most regex processors:/((? Followed by at least one or more valid domain characters (a-z, 0-9, or -)Matches without case sensitivity (/i)It does not enforce white space, so it will match this: blah and return you want to enforce space, add \s to the beginning, but then you have to ensure that you add a space to the beginning of the string to match. They can be replaced with matching groups () if your regex processor has trouble. It's not terribly strict, but it matches all standard domain names (but might let slip through some invalid ones). Also, next time, you might want to include the programming language or context, because regex processors vary greatly in feature support. I developed this by little trial and error and covers u r scenario.... Regards, Abhishek when we are u using that time it working fine but that is not only web site ulr format for example ( .com, , , in ) like this lot of format is there .please post answer like all url validation supported ..