[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble with regexp

From: rgb
Subject: Re: Trouble with regexp
Date: 25 Oct 2005 10:16:32 -0700
User-agent: G2/0.2

> %token FOO_Alter
> where 'FOO' is always 'FOO' but 'Alter' is variable.
> I'd like to convert these lines to:
>   t_foo_Alter = 'Alter';

Does this work?

%token FOO_\([a-zA-Z]+\)
t_foo_\1 = '\1';

reply via email to

[Prev in Thread] Current Thread [Next in Thread]