Forum

Share

Please consider registering
guest

Log In RegisterMembers
Or log in with

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Regex Case
December 29, 2009
3:46 am
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!

Share
December 29, 2009
10:55 am
Admin
Forum Posts: 323
Member Since:
July 12, 2008
Offline

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)

Share
December 29, 2009
6:08 pm
Johnny
Guest

Excellent!

Thanks again for your work on this! Laugh

Share
Forum Timezone: UTC -8

Most Users Ever Online: 18

Currently Online:
8 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

bobkatz: 8

BigMike: 8

t2m: 7

zabolyx: 7

taa: 6

onlyme: 6

Member Stats:

Guest Posters: 130

Members: 565

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 7

Topics: 231

Posts: 802

Moderators: rkent (323)

Administrators: rkent (323)