Working but unreadable regex definition