You've already described a feature which has different syntax in one of the primary regex dialects I use (Emacs).