Re: Splitting username(_at_)host(_dot_)1999-08-11 21:57:09:0 * RCPT ?? ^^\/.*@ { USER = $MATCH } The RCPT variable is set from the arguments and basically I'm trying to pull out the username... The problem is the fact that it matches "username@" as opposed to "username". \/ sets MATCH to anything that matches your regular expression, so the only way to exclude the @ is to remove it from the regex. Try * RCPT ?? ^^\/[^(_at_)]+ That should match everything from the start of RCPT to the first character before an '@'. Chris
|
|