Skip to content

Regular Expression Tools

by admin on June 25th, 2010

A friend shared a RegEx tool that came in really handy. Its www.rubular.com. I dont’t get alot of opportunities to work with regex but when i do, having a new tool can make it almost fun.

I came up with this expression to match various URL’s that users enter that i could create new links from.

  1. (((https?):\/\/)?(([0-9a-zA-Z][-\w]*\.)+[a-zA-Z]{2,9}(:\d{1,4})?([-\w\/#~.?=&%@~])*))

Looks like cartoon swearing.

From → Web Development

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS