1. How to match everything up to the second occurrence of a character

    How to match everything up to the second occurrence of a character