We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
# 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 submittedgrep-wiE"(the|then|that|those)"#passesintitallyandpassesallsubmissions
I decided to show my work as well as my trial and error attempts, hope this helps.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
'Grep' - A
You are viewing a single comment's thread. Return to all comments →
I decided to show my work as well as my trial and error attempts, hope this helps.