using single regex instead of detect regex for perf benefits