Does leetcode not support grep -E option?

  • 0

    I run the following shell script in Mac and the result is OK. But it output nothing when tested by leetcode.......
    $ grep -o -E '(\(\d{3}\) |\d{3}-)\d{3}-\d{4}' file.txt

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.