#!/bin/bashperl -pe 's/([a-z])(?!\1)(?i:\1)//g' <<< "foObar"
Standard input is empty
fbar
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!