| View previous topic :: View next topic |
| Author |
Message |
IP: 192.19.*.*
Guest
|
Posted: Wed Dec 10, 2003 1:45 pm Post subject: Q: Case Insensitive Regular Expressions ???? |
|
|
Is there something I could do, to have MW Pro do case-insensitive pattern matching for Regular Expressions? Is there something I could add to the pattern itself to match, for example "Hello", "hello", "hEllo", "hellO", without actually specifying all the possible combinations?
Or does MW Pro already do that by default?
|
|
| Back to top |
|
 |
Ikeb
Special Response Team Forums Admin
 Joined: Apr 20, 2003 Posts: 16506
|
Posted: Wed Dec 10, 2003 2:41 pm Post subject: |
|
|
Yes to the latter.
|
|
| Back to top |
|
 |
Perry
Lieutenant

 Joined: Oct 19, 2003 Posts: 291 Location: USA
|
Posted: Thu Dec 11, 2003 3:17 am Post subject: |
|
|
| Ikeb wrote: | | Yes to the latter. |
Case sensitivity on the local part of addresses could come in handy on some systems that allow its use.
Perry
|
|
| Back to top |
|
 |
UserFriendly
Captain

 Joined: Apr 18, 2003 Posts: 348
|
Posted: Tue Dec 16, 2003 11:03 am Post subject: |
|
|
You can use embedded modifiers to alter things like case sensitivity.
Regular expression: "(?-i)hello" will match "hello" but not "Hello" or "hEllo" etc.
Regular expression: "(?i)hello" will match all three but this is the default in MailWasher so the "(?i)" is unnecessary.
See: http://anso.virtualave.net/RegExpE/tregexpr_syntax.htm
Note: You might want to add this site your your "Restricted sites" or equivalent to stop the Gator popups.
Edit: The site has now moved to:
http://regexpstudio.com/TRegExpr/Help/RegExp_Syntax.html
-UserFriendly
|
|
| Back to top |
|
 |
|
|