horrible used of regex