Vid 1994

If you are checking for the subdomain, here is one possible solution (along with regexing) http://stackoverflow.com/a/15979390
Once we have the host name, we can match against the following per @nmonterroso 
"dev: vignette.wikia-dev.com
prod: vignette(1-5).wikia.nocookie.net"