Re: perl regular expression grammar

ralph@inputplus.demon.co.uk (Ralph Corderoy)
18 Jul 2001 19:59:33 -0400

          From comp.compilers

Related articles
perl regular expression grammar alan@oursland.net (2001-07-17)
Re: perl regular expression grammar merlyn@stonehenge.com (2001-07-18)
Re: perl regular expression grammar ralph@inputplus.demon.co.uk (2001-07-18)
Re: perl regular expression grammar johnmillaway@yahoo.com (John W. Millaway) (2001-07-18)
Re: perl regular expression grammar mjd@plover.com (2001-07-18)
Re: perl regular expression grammar abigail@foad.org (2001-07-18)
Re: perl regular expression grammar alan@oursland.net (2001-07-23)
Re: perl regular expression grammar usenet11522@itz.pp.sci.fi (Ilmari Karonen) (2001-07-23)
Re: perl regular expression grammar mjd@plover.com (2001-08-02)
| List of all articles for this month |

From: ralph@inputplus.demon.co.uk (Ralph Corderoy)
Newsgroups: comp.compilers
Date: 18 Jul 2001 19:59:33 -0400
Organization: InputPlus Ltd.
References: 01-07-080
Keywords: syntax
Posted-Date: 18 Jul 2001 19:59:33 EDT

Hi,


> One area I am >confused is the "\c[" control character (described at
> http://www.perldoc.com/perl5.6/pod/perlre.html).
>
> <controlchar> ::= "c["


Yes, the man page looks poor to me. In the past it used to explain
that \ca meant Control-A, i.e. ASCII SOH. So \c[ means ASCII ESC (27)
since [ is 0x5b and 0x5b & ~0x40 == 0x1b. What I'm trying to say is it
doesn't just work for [, that's just an example, other characters can
follow.




Ralph.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.