RegEx Search Help

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Post Reply
User avatar
dpupello
Member
Member
Posts: 63
Joined: 2002 Feb 14, 15:47
Location: FL
Contact:

RegEx Search Help

Post by dpupello »

Inside of a search pane that already lists a couple hundred email (text) files, I need to do a (Regex?) search for the following conditions:

Line will begin with the word From: ...

From: "(Could be any full name here)" <(could be any username here)@blah.someword.dd.ca>

...line will end with > character.

An example of what the text file might contain...

From: "Joe User" <juser@blah.someword.dd.ca>

Another example...

From: "Mary Worker" <mworker@blah.someword.dd.ca>

I DON'T want to include any other email domain in the results, such as:

From: "John Doe" <mworker@email.com>

Basically, the purpose is to find any file that contains a line starting with  From:, and ending with the domain  @blah.someword.dd.ca>

How would I frame this search in X2?

What checkboxes or Regex syntax would provide a solution?

My many tries have not worked.  Thanks very much!
User avatar
FrizzleFry
Platinum Member
Platinum Member
Posts: 1241
Joined: 2005 Oct 16, 19:09

Post by FrizzleFry »

Off the top of my head I would say:

^From:.*@blah\.someword\.dd\.ca\>$
User avatar
nikos
Site Admin
Site Admin
Posts: 15806
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

i think i remember the "start of line" and "end of line" tags don't work properly so you'd have to change that into something that makes sure there's no newline inbetween or something.
Post Reply