Re: This perl script does nothing....

2002-12-07 Thread Jonathan Daniels
DOH, I would have sworn I did have a question mark in there. At one point anyway. Thanks Rob, Jonathan On 12/7/02 8:17 AM, "Rob Dixon" <[EMAIL PROTECTED]> wrote: > Hello Jonathan > > It's because the regex /^.*\@/g finds the _last_ @ in the record, which > isn't followed by 'domain'. The .

Re: This perl script does nothing....

2002-12-07 Thread Rob Dixon
Hello Jonathan It's because the regex /^.*\@/g finds the _last_ @ in the record, which isn't followed by 'domain'. The .* will consume as many characters as it can as long as the rest of the regex is satisfied. If you were to do it like this, you'd use /^.*?\@/g because .*? matches as few charact