Article Index |
1. Appendix |
1. Appendix
Regular Expressions
The notice and ignore functions use regular expressions for matching strings. Regular expressions are very powerful, and are beyond the scope of this document. Here are a few examples to get you started:
Regular expression
|
Explanation
|
Will match
|
Will not match
|
[Tt]esting
|
Match any string with the word testing
|
Testing, testing
|
tesTing, besting
|
(bananna|apple)
|
Match any string with bananna or apple in it
|
My bananna is yellow, My apple is red
|
My kiwi is green
|
[0-9]11
|
Match any three digit number ending in 11
|
411, 911
|
421, 976
|
[0-9]{3}-[0-9]{3}-[0-9]{4}
|
Match a US phone number
|
800-555-1212
|
01-423-99456, apple
|
|
Last Updated on Monday, 14 September 2009 12:27 |