|
-
November 30th, 2002, 11:16 PM
#2
Hi, i have been away from perl and regex for a long time, but after reading your question several times I think I understand. As you said, after the sixed coma if the email address is not in domain.com it will be acepted if one or more of the recipitants are in domain.com, which is not what you want, whereas you want to ensure the address after the sixt coma is inside domain.com
I think your problem is the wild card which matches everything which in this case can grad the email beyond the 7th coma which would be the recipitant, thus if the recipitant is in domain.com but the sender is not, it matches because the wildcard blindly skiped over the sender, this will alow it to "hog" and grab beyond the coma. I think instead of the wild card you might use something more restrictive such as
[^,]
which if I remember corectly will match any character except for a coma,
I could be wrong and I will check in a minute, please corect me if I am wrong.
I did however write a regex tutorial for perl regular expressions long time ago, you can find it here:
http://www.antionline.com/showthread...ar+expressions
I dont know if that is of any help, but I think your problem is the wildcard is hoging which can grab beyond the 7th coma
In snatches, they learn something of the wisdom
which is of good, and more of the mere knowledge which is of evil. But must I know what must not come, for I shale become those of knowledgedome. Peace~
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|