I am not familiar with jQuery, but if it uses a standard regex, it will be something like this:
http://twitter.com/(
This bit (#!/)? should do #! / optional, and this [a-zA-Z0-9_]{1,15} is that Twitter usernames can contain letters (upper or lower case), numbers and underscores, and can contain up to 15 characters.
Beright
source share