# !bin/bash re ="-([^-]*)-"for i in *do if [[ $i =~ $re ]]; then echo ${BASH_REMACHTCH[1]}; fidone
Standard input is empty
./prog.sh: line 3: re: command not found
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!