Extract EMAIL from text file using Batch Job
I have a text file called results.txt with something like the following in two or more lines:

**ok   2782731**

**userid                  username (nickname) user@domain.com**

I would like to extract out user@domain.com only (emails), which by the way is surrounded by a less than and greater than symbol, but they don't appear here. I thought of using FINDSTR with /R, but when I try:

findstr /R /I C:/"[a-z].@.\.[a-z]" results.txt

it doesn't work, can someone help me? I do not want to introduce awk, VB, or any other scripting language, if this can be done in batch.

Thanks!
Extract EMAIL from text file using Batch Job
===

I have a text file called results.txt with something like the following in two or more lines:

**ok   2782731**

**userid                  username (nickname) user@domain.com**

I would like to extract out user@domain.com only (emails), which by the way is surrounded by a less than and greater than symbol, but they don't appear here. I thought of using FINDSTR with /R, but when I try:

findstr /R /I C:/"[a-z].@.\.[a-z]" results.txt

it doesn't work, can someone help me? I do not want to introduce awk, VB, or any other scripting language, if this can be done in batch.

Thanks!