RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

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
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials