improved regexes to allow spaces, rgba