UK and US: Part 2

  • + 3 comments

    just put a whitespace after your regex to catch this tricky case. Also don't forget to add extra whitespace in your input

    1
    savour savoury
    2
    savour
    savoury
    

    the output should be

    1
    1
    

    not

    2
    1