[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regexps and strings once again
From: |
Stefan Monnier |
Subject: |
Re: Regexps and strings once again |
Date: |
Mon, 15 Sep 2014 08:56:38 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
> If we want to do a more string-ey syntax, but not require wrapping it in
> (regexp ...), then we could have something like:
> #r"This is (not )?a Perl regexp"
The difference between #r"REGEXP" and (SYMBOL REGEXP) is enormous in
terms of tool support. So if you don't like (regexp "foo"), I'd
recommend you try a shorter symbol first.
Stefan
Re: Regexps and strings once again, Lars Magne Ingebrigtsen, 2014/09/15
Re: Regexps and strings once again, Yuri Khan, 2014/09/14