Remove unnecessary extras to regex