Regular expressions are supremely useful, but their syntax isn't exactly obvious. I use this almost daily and thought I should share it.