I need to just get the line in the format zzzpbx*@domain.com. Meaning, all the strings I am looking to get start with zzzpbx and end with @domain.com. In between it could be any number of letters or digits. Any ideas?
Oh, okay. Well, a regex would just be something like zzzpbk[\w]+@domain.com
\w meaning letters and numbers, but not spaces or punctuation. Adjust as needed. There’s about about_regular_expressions help file in PowerShell with the basic syntax, and I use regextester.com a lot to play with regexes and get them tweaked. There’s also regexlib.com which has a lot of pre-made ones.