Forum

Or log in with
 
Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Regex Case

Reply to Post Add a New Topic
UserPost

3:46 am
December 29, 2009


Johnny

Guest

Hi,

Thanks for the great extensions! Your bayes classification extension looks useful for tagging and automatically moving stuff into folders automatically Laugh

My question is: Is it possible to make the regex search case insensative with some sort of switch (like the /i modifier)?

Thank you!

10:55 am
December 29, 2009


rkent

Admin

posts 279

Post edited 6:56 pm – December 29, 2009 by rkent


Looking at the code, I see that I have not provided any method to allow adding RegEx flags to this search term. Let me note that in my bug database so that I can try to fix that in future versions.

In the meantime, this is very easy to do with a javascript search term. If your case-insensitive search term is "ABC" just enter this as the javascript search term:

(/ABC/.i).test(message.subject)

6:08 pm
December 29, 2009


Johnny

Guest

Excellent!

Thanks again for your work on this! Laugh

Reply to Post

Reply to Topic:
Regex Case

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
2 + 11
   


 
Share