I see this regex used in a few places, might be nice to have it in one place (perhaps a utility func somewhere?).