[ANN] Markdown.pl 1.0.2b4

John Gruber gruber at fedora.net
Mon Sep 19 16:25:48 EDT 2005


Michel Fortin <michel.fortin at michelf.com> wrote on 9/19/05 at 4:18 PM:


> Add the digits and it will look right to me too.

>

> [A-Za-z][A-Za-z0-9+.-]*


Right, I forgot the digits.

* * *

Justin Mason <jm at jmason.org> wrote on 9/19/05 at 1:15 PM:


> nearly;

>

> [A-Za-z][A-Za-z0-9\+\.\-]*


You're right that I forgot the digits, but you don't need to escape
the `+`, `.`, or `-`. Plus and dot aren't magic inside a character
class, and neither is dash if it comes at the beginning or end
(because if it's the first or last character in the class, it can't
mean "range").

Thanks,

-J.G.


More information about the Markdown-Discuss mailing list