This will remove begining & trailing whitespace
RewriteUsername s/^\s+//
RewriteUsername s/\s+$//
- Original Message -
From: "Paul Black" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 4:41 AM
Subject: (RADIATOR) Rewrite rules
Hello Paul -
You should get a copy of the Camel book (Programming Perl from O'Reilly) and
do some experiments with regular expressions to get a feel for them.
A RewriteUsername to strip spaces would look like this:
RewriteUsername s/ //g
this one strips the "@some.realm" from a usern
I'm still trying to make my rewrite rules do exactly what I want.
What rule would I need to string leading white space from the
username?
Also what does the first rule shown below do?
Regards. Paul
>>
>> RewriteUsername s/^([^@]+).*/$1/
>> RewriteUsername tr/A-Z/a-z/
===
Archive at http://
On Apr 15, 5:39pm, Jamie Orzechowski wrote:
> Subject: (RADIATOR) Rewrite rules
> PROBLEM! ...
>
> I am using the rewrite rules
>
> RewriteUsername s/^([^@]+).*/$1/
> RewriteUsername tr/A-Z/a-z/
>
> it works fine and lets the user log in ... but i go and check my
PROBLEM! ...
I am using the rewrite rules
RewriteUsername s/^([^@]+).*/$1/
RewriteUsername tr/A-Z/a-z/
it works fine and lets the user log in ... but i go and check my accounting
radius server (another machine running livingston radius) and it has a START
record for the user "MHz" which was