Hacky REGEX solution