fork download
  1. #!/bin/bash
  2. echo "J3E||F3E|R3E|||H3E" | sed 's/|\{3,\}/|/g'
  3. echo "J3E||F3E|R3E|||H3E" | sed -E 's/\|{3,}/|/g'
Success #stdin #stdout 0.01s 5388KB
stdin
Standard input is empty
stdout
J3E||F3E|R3E|H3E
J3E||F3E|R3E|H3E