Alex Alex - 1 year ago 164
jQuery Question

Regex to validate a twitter url

I'm using the jQuery validation engine to parse my form data:

What would be the regex to validate a twitter URL (including the part) Eg:

Answer Source

You mean /http(?:s)?:\/\/(?:www\.)?twitter\.com\/([a-zA-Z0-9_]+)/

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download