Better regex for symbol detection