I need to check if my server is on the live or development mode. Currently I am doing it like this: 

```
<cfset isLive = FindNoCase("www.mydomain.com",CGI.SERVER_NAME) NEQ 0>

```

But the above does not seem foolproof. If the user tries

* `http://mydomain.com` or
* `https:///mydomian.com` or
* `http://www.mydomain.com`

.. it will not work properly. Can anyone tell me how to accomplish this with a regex?