test dynamically created symbols
test if pattern is a regexp