• + 0 comments
    # references: https://www.thegeekstuff.com/2009/03/15-practical-unix-grep-command-examples/ https://www.digitalocean.com/community/tutorials/using-grep-regular-expressions-to-search-for-text-patterns-in-linux#extended-regular-expressions
    #grep "th[aeo][[:space:]tns][[:space:]e]" # doesn't exlucde 'thou' and doesn't seem to include 'those'
    #grep -E "(the|then|that|those)" # shows up as wrong answer
    #grep -iE "(the|then|that|those)" # this works initially but fails 1 test case when submitted
    #grep -E "(being|the|that|those)" # passes initially but fails both test cases when submitted
    grep -wiE "(the|then|that|those)" # passes intitally and passes all submissions
    

    I decided to show my work as well as my trial and error attempts, hope this helps.