Re: Custom Filters...I need to filter on any 6 number string
\d is for any digit \b is a word boundary
The above will match 6 numbers in a roll, even if wedged between letters (i.e. test123456test )
The above will match the same thing but be stricter in that the character to the left and the right cannot be a special character or letter I believe. Test both and see what you're more comfortable with.
Funny you should ask. Here's a good starting point. One of our sales engineer compiled this Support Portal knowledge base article together. There are links to Python regex guides and examples of how to test.
How do I test regular expressions before using them in a filter?
The Trace command can also be useful in testing regular expressions. However, the Trace command (in both the GUI and CLI) works only on committed changes. This means that you must have your regular expression "in production" to use Trace. You can write a filter that has only the regular expression and no actions if you want to test the regular expression using Trace without fully committing your message filter or content filter to production operation.
You can also use a system quarantine to test regular expressions in filter rules. For more information, refer to Answer ID 87: How do I test and debug a message filter or a content filter before I put it into production?" title="Answer ID 87.
For more information about message filter rules, see the AsyncOS Advanced User Guide on the IronPort Support Portal[http://www.ironport.com/support/login.html].
Table of ContentsIntroductionVersion HistoryPossible Future
UpdatesDocuments PurposeNAT Operation in ASA 8.3+ SectionsRule Types
Network Object NATTwice NAT / Manual NATRule Types used per SectionNAT
Types used with Twice NAT / Manual NAT and Network Obje...
Table of Contents Introduction:This document describes details on how
NAT-T works. Background: ESP encrypts all critical information,
encapsulating the entire inner TCP/UDP datagram within an ESP header.
ESP is an IP protocol in the same sense that TCP an...