
Eric
New User
Jun 24, 2002, 6:40 PM
Post #1 of 6
(11757 views)
|
Matching On Metacharacters
|
Can't Post
|
|
I need some assistance in matching on Metacharacters to reject any e-mails which may contain these WITHIN the boundaries marked with an X below (am already filtering at the X parts with other expressions and this is working fine). Except for a "." (period). XsomenameX@Xsome.domainX.TLD I'd also like to match any commas, dollar signs or forward slashes, etc., but not sure if I need to 'escape' all of the characters or just the metacharacters within a [] format like: [~!@#%=;:'"<>,\+\?\*\^\$\[\]\{\}\|\\] and in two separate matches: 1. Between the 1st character (X) and the last character (X)of whatever preceeds the "@". Like: $email !~ m/XmetamatchhereonlyX@/ 2. Between the 1st character (X) and the last character (X)of whatever follows the "@" and preceeds any final "." just before the TLD extension. And: $email !~ m/\@XmetamatchhereonlyX\.[A-Za-z]{2,4}$/> WHEW!!! Thanks for any help. Eric
|