Title |
Test
Find
Validate Twitter Account Url
|
Expression |
^http[s]?://twitter\.com/(#!/)?[a-zA-Z0-9]{1,15}[/]?$ |
Description |
Allows http and https, bans www prefix, username portion is clamped to the rules it gives you at signup and also allows an optional trailing slash. [UPDATED] allows the #! notation that twitter used. |
Matches |
http://twitter.com/rtpharry/ | http://twitter.com/rtpharry | https://twitter.com/rtpharry/ | https://twitter.com/rtpharry | http://twitter.com/#!/rtpharry/ |
Non-Matches |
http://www.twitter.com/wwwprefix/ | http://twitter.com/longerthan15characters/ | http://twitter.com/illegal$chars/ |
Author |
Rating:
Not yet rated.
Matthew Harris
|
Source |
|
Your Rating |
|