Match only non-text tokens to improve performance.