convert asterisks to html-bold via sed

By Hal Canary, 2011-03-07 20:37:44 (link)
#computers-code

#!/bin/sed -f
#DTPD#
#convert *bold* text to *html bold*
# also converts /italic/ text to html em
s/\*\([^\*]*\)\*/<strong>\1<\/strong>/g;
s/\/\([^\/]*\)\//<em>\1<\/em>/g;

(back)