fixed client url switch logic. [] matches any char
fixed regex for remaining clients