help-cfengine
[Top][All Lists]
Advanced

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

Re: backrefs in regexps?


From: martin f krafft
Subject: Re: backrefs in regexps?
Date: Tue, 19 Oct 2004 06:09:54 +0200
User-agent: Mutt/1.5.6+20040907i

also sprach Tim Nelson <architect@webalive.biz> [2004.10.19.0601 +0200]:
> Looking at this and your other question, you need to carefully
> learn the differences between the three different types of Regex.
> They are:
> 
> -     Basic (POSIX) Regex -   Extended (POSIX) Regex -        Perl Regex

I think I am actually aware of the differences. You must excuse,
I just spent about 34 hours locked away in the cluster room
bootstrapping my cfengine and FAI[0] knowledge from zero to a state
where the 40 machines install to provide desktop and cluster
(OpenMosix) services. Manuals *do* get blurry in those stretches...

>       In this e-mail, you may find that it works if you use \1 instead
>       of $1. If not, you'll need to do some more reading.

Oh, that would make sense. I will try it as soon as I return to the
cluster, which may take a day or two.

>       In your other e-mail, you'll find that \s doesn't exist in eregex.
>       You could use [[:space:]] (elegant but long-winded) or [ \n\t]
>       (and maybe \r too).

Actually, I used .* but felt ashamed of it ;^>. I think the problem
is more with quotes... my instruction was:

  ReplaceAll "Driver.*\"nv\"" With "Driver${tab}${tab}\"nvidia\""

I forgot the exact error I got, but cfengine dir complain. I will
run it again when I am back in this dreaded cluster room.

Thank you for your response.

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
 
invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver!
spamtraps: madduck.bogus@madduck.net
 
hi! i'm a .signature virus!
copy me into your ~/.signature to help me spread!

Attachment: signature.asc
Description: Digital signature


reply via email to

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