#!/bin/bashecho "J3E||F3E|R3E|||H3E" | sed 's/|\{3,\}/|/g'echo "J3E||F3E|R3E|||H3E" | sed -E 's/\|{3,}/|/g'
Standard input is empty
J3E||F3E|R3E|H3E J3E||F3E|R3E|H3E
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!