____________s{^\s*[-?](.*)$}{<ul><li>$1</li></ul>}mg; # note the m rather than s m +odifier s/([^>])$/$1<br>/mg; # add <br> only where no closing tag at EOL s{</ul>\n<ul>}{\n}sg; # cleanup
In reply to Re: Regex Titans? - format plaintext to HTML
by Aristotle
in thread Regex Titans? - format plaintext to HTML
by George_Sherston
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |