Skip to content

Instantly share code, notes, and snippets.

@kbbgl
Created May 7, 2020 17:01
Show Gist options
  • Save kbbgl/ed9f1febe731d99820e9ec3073ef3869 to your computer and use it in GitHub Desktop.
Save kbbgl/ed9f1febe731d99820e9ec3073ef3869 to your computer and use it in GitHub Desktop.
[output regex matches in new line] #bash #grep #regex
echo "12341234444344412354444" | grep -P "4{2,4}?" -o
44
44
44
44
44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment