Andre Poenitz wrote:

> On Wed, Apr 20, 2005 at 01:54:09PM +0100, Angus Leeming wrote:
>> Attached. Looks scary, but the textclass.lst and chklayouts.tex files
>> are unchanged by this manipulation.
> 
> +# For lines containing "\Declare(LaTeX|DocBook|LinuxDoc)Class"
> +/\\Declare[LD][a-zA-Z]\{1,\}Class/{
> 
> The comment does not match the code, does it?

Well, the regex will match the searched-for string...

If you want a real test:

/\\DeclareLaTeXClass/bmatch
/\\DeclareDocBookClass/bmatch
/\\DeclareLinuxDocClass/bmatch
b

:match
# The manipulation stuff goes here

Jean-Marc, the above seems like overkill to me, but it has the advantage of
being clear :) Let me know what you'd like.

-- 
Angus

Reply via email to