Only do a regex comparison between a pattern and something that's a basestring instance