Regex doesn't only match at beginning