#!/bin/bashs='[Test](test/link), [Test](test/link1/link), [Test] (test) 'sed 's/\(\[[^][]*]([^()]*\))/\1.html)/g' <<< "$s"
Standard input is empty
[Test](test/link.html), [Test](test/link1/link.html), [Test] (test)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!