Need a RegExp

I need some help in defining a RegExp for checking an URL. I know that there are some URL RegExp’s out there, but I need a custom one. Here’s what I have so far:
var urlExpression:RegExp = /([a-z,A-Z][0-9]*)(.)([a-z,A-Z]{2,4})/;
It works ok, but I need to check before the ’ (.) ’ part if there’s a ‘space’ (or any other non alphanumeric) character before it. If there is, the result should be false.