Voder-Vocoder

The Log of Hal Canary

Navigation: Home | THE LOG | Log Archives | Resume | Contact Info | Public Key | SSL | Math Applets | Site Map | RSS2 | Atom | Backend

« | »

convert asterisks to html-bold via sed

#!/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;

Hal Canary | Computers & Code | 2011-03-07 20:37:44 UTC
Permanent Link Comments Off | No Comments

Comments are closed.
Email me your comments — h3 at halcanary dot org.

Copyright 1997-2012 by Hal Canary.
mailto: halcanary at gmail dot com
http://halcanary.org