more accurate regex