SoftwarelanguagesregexOuput Regex Matches to New LineOuput Regex Matches to New Line echo "12341234444344412354444" | grep -P "4{2,4}?" -o#44#44#44#44#44