remember that perl doesn't do greedy matching, so, try: /.*<=(.*)\s*\[(\d?\d\d\.\d?\d\d\.\d?\d\d\.\d?\d\d).*/ $1 will be the email, and $2 will be the ip.
In reply to Re: String Matching
by linuxkid
in thread String Matching
by stevbutt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |