On Sun, 31 Oct 1999, Chris M wrote:

[...]
> Here is what I have so far, this might be helpful to others also:
> 
> <Realm mydomain.com>
>         # Strip leading white space
>          RewriteUsername s/^\s+//
>          # Strip trailing white space
>          RewriteUsername s/\s+$//
>          # turn into lowercase and chop domain
>          RewriteUsername tr/A-Z/a-z/
>          RewriteUsername s/^([^@]+).*/$1/
>          # attempt to strip leading \ and characters up to it (no workee, help)
>          RewriteUsername s/^(\\+).*//

Whilst I don't claim to be an expert on REs (let alone perl ;-), that last
line does look awfully like it will return nothing for a name that starts
with "\"s.  Shouldn't it be more like: 

           RewriteUsername s/^\\+(.*)/$1/

or (assuming your "strip leading white space" example works):

           RewriteUsername s/^\\+//

If you are trying to reduce something like DOMAIN\name to name, then 
perhaps consider something like:

           RewriteUsername s/^.*\\+(.*)/$1/

HTH,
Neale.

===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to