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.
On my system (Ubuntu 20.04 with GNU grep 3.4 the following simpler command works as well:
grep -E "([0-9]) ?\1"
I don't understand why it doesn't work here.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
'Grep' - B
You are viewing a single comment's thread. Return to all comments →
On my system (Ubuntu 20.04 with GNU grep 3.4 the following simpler command works as well:
grep -E "([0-9]) ?\1"
I don't understand why it doesn't work here.