stupid regex bug: make sure we're matching from the beginning of the string