Hi,
I’m fighting to make a regex to find any text after a space and before an @ and any text before that until it reaches a whitespace again…
$myString = @" dys dkan jdna user@domain.no hhaksda d asda user@domain.com dsad ada sdd asd manolo.andrade@dominio.com.br fdfsd dsajklg test.user@domain.net "@
Using this:
(Select-String -InputObject $myString -Pattern '\w+@\w+\.\w+.\w+' -AllMatches).Matches | ft * -AutoSize
I only get the andrade@dominio.com.br without the manolo…
I want to find any text that has a @ in the middle… (Ex.: te@aol.com, test.teste_teste@test.com.br, etc)