help-cfengine
[Top][All Lists]
Advanced

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

Re: Regular expressions and backslashes...


From: Juri Jensen
Subject: Re: Regular expressions and backslashes...
Date: Fri, 3 Aug 2001 09:48:52 +0200
User-agent: Mutt/1.2.5i

On Fri, Aug 03, 2001 at 06:48:16AM +0200, Adrian Phillips wrote:
> >>>>> "Juri" == Juri Jensen <juri@xenux.dk> writes:
> 
> Just to clarify this part :-
> 
>     >>  Right, I've been testing this with perl and having lots of
>     >> fun. Yes, it is the backslashes. Using [\] gives problems
>     >> because \] is just an escaped ] possibly. I've tried various
>     >> variations and I'm currently stumped although you could try
>     >> [\\] to see if that helps.
> 
>     Juri> Well I tried that and it didn't work....
> 
> Hmm, but later you say it works.

No, I tried "[\\]" to get two backslashes, not to get a single one...

> 
>     >>  Stop the press !! I got it working using :-
>     >> 
>     >> ^ *;* *logon path = [\\][\\]%N[\\]USERPROFILES[\\]%U(
>     >> +(;.*)?)?$
>     >> 
>     >> Try that and let me know if it works as it works using perl at
>     >> least but I haven't checked with cfengine
> 
>     Juri> It works!!! Thanks!! Fast reply and an elaborate answer, I
>     Juri> must say...
> 
> Which is what I asked in the first paragraph, ie. using [\\], is there
> something else there that I changed which I haven't noticed (the
> [[:blank:]] perhaps ?

I think my answer to your first question also fits this one....

> 
> Sincerely,
> 
> Adrian
> 
> -- 
> Your mouse has moved.
> Windows NT must be restarted for the change to take effect.
> Reboot now?  [OK]
> 

-- 
Med venlig hilsen/Best regards

Juri Jensen

Xenux Aps
http://www.xenux.dk
e-mail: juri@xenux.dk



reply via email to

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