Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Use regexps on header filters Apps
The default header filters in will fail to filter out headers like "Delivered-To:". To fix this, in the Preferences --> Viewing panel, on the Show Header Detail pop-up, click Custom then double click on the "To" filter, and change it to "^To:".

These filters are Regular Expressions, or regexps. They are patterns that match text. In regexp, a caret (^) at the beginning of the string means "the string starts with".

^To: - matches only strings that start with "To:".

The original pattern "To" happens to match the word "To" at the end of "Delivered-To". That's why you see that extra header line.

[Editor's note: regexps are incredibly powerful, and for those new to UNIX (like myself!), incredibly obtuse and confusing. I've been doing some reading on the web about them, and I found a tutorial written by Jan Borsodi which I found to be thorough and easy to read. Worth a view if you'd like to know more of what you can do with regexps; "^" is just the tip of the (large!) iceberg!]
  • Currently 2.00 / 5
  You rated: 4 / 5 (3 votes cast)

Use regexps on header filters | 2 comments | Create New Account
Click here to return to the 'Use regexps on header filters' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
'nother Reg Exp link
Authored by: djTurbonium on Aug 16, '01 08:47:47PM is a good quick reference of Reg Exp syntax. It applies to VBScript and JScript's interpretation of Reg Expns but can be used for everyday RE interpretation too.
Warning: those who melt if viewing the word 'Microsoft' shouldn't go there.

[ Reply to This | # ]
man regexp ;o)
Authored by: spyro_le_dragon on Aug 17, '01 05:32:05AM

in case you're lost in your CLI and need a quick reminder

[ Reply to This | # ]