regex matching fix