in reply to regex optimization

Yup, there are ways to improve:

-- Hofmator