Permabanned
I'm trying to match up some email addresses using regular expressions in bash.
Currently got the expression
Which successfully matches all the emails i need, however when trying to add the To: field i cant seem to get any matches and i'm not sure why.
This is my code with the To field.
Which AFAIK should match up fine with "To: [email protected]" but doesn't![Frown :( :(](/styles/default/xenforo/vbSmilies/Normal/frown.gif)
Any advice?
Currently got the expression
Code:
"^[a-zA-Z0-9!#\$%&'\*\+/=?^_\`{|}~-]+(\.[a-zA-Z0-9!#\$%&'\*\+/=?^_\`{|}~-]+)*@([a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?\$"
This is my code with the To field.
Code:
"^To:\s[a-zA-Z0-9!#\$%&'\*\+/=?^_\`{|}~-]+(\.[a-zA-Z0-9!#\$%&'\*\+/=?^_\`{|}~-]+)*@([a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?\$"
Which AFAIK should match up fine with "To: [email protected]" but doesn't
![Frown :( :(](/styles/default/xenforo/vbSmilies/Normal/frown.gif)
Any advice?