[Top][All Lists]

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

Re: Regular expressions and backslashes...

From: Adrian Phillips
Subject: Re: Regular expressions and backslashes...
Date: 03 Aug 2001 07:11:14 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

>>>>> "Juri" == Juri Jensen <address@hidden> writes:
    >>  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...

I suppose if we'd read the manual a bit more carefully :-

     Defines a list of characters which are to be considered as a single
     object (ORed). e.g. `[a-z]' matches any character in the range a to
     z, `abcd' matches either a, b, c or d.  Most characters are
     ordinary inside a list, but there are some exceptions: `]' ends the
     list unless it is the first item, `\' quotes the next character,
     `[:' and `:]' define a character class operator (see below), and
     `-' represents a range of characters unless it is the first or
     last character in the list.

Although it doesn't explain why \\\\ didn't work (without [])


Adrian Phillips

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

reply via email to

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