in reply to regex help

What code have you already written and where does it fail?