• + 1 comment

    Ah, this was some good advice on increasing readability. It was always fun to solve the problem with least lines of code, but not so fun when you try to work with it again after 3 months.

    In your solution, the lookahead in the 2nd and 3rd filter could be removed to further simplify things. They were present in the original solution to prevent "consuming" the string when matched, but in your case the matchings are seperated so lookahead is not required.