remove fluff and redundant part of regex