Auto-capitalization

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

Auto-capitalization

Postby Smite » Sat Dec 11, 2004 12:22 am

Can we get rid of auto-capitalization in the find bar? It really screws with the regex.

For example, I would use \d (same as [0-9]) a lot, but I can't since it's always converted to \D (same as [^0-9]).
Please read the FAQ before asking any questions.
If you're new to newsgroups, and the files on them, you can find a very helpful guide here.
User avatar
Smite
Katamari Damacy Addict
 
Posts: 5318
Joined: Sat May 19, 2001 1:54 am
Location: Alberta, Canada

Registered Newsbin User since: 03/27/03

Postby Quade » Sat Dec 11, 2004 12:29 pm

Let me think about what it would break. Probably have to be an advanced option.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 45003
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Postby Kiltme » Tue Feb 01, 2005 5:38 pm

Case sensitive filters should not be the default for sure.

The current force uppercase was probably put in to fix \.exe is not the same as \.EXE type problems.

http://forums.newsbin.com/viewtopic.php?t=5957
User avatar
Kiltme
Seasoned User
Seasoned User
 
Posts: 638
Joined: Mon Jan 05, 2004 2:02 am

Registered Newsbin User since: 01/05/04

Postby Smite » Tue Feb 01, 2005 10:44 pm

I'm not saying the filters have to be case sensitive, I'm saying the RegEx has to be. They're two seperate things. (And the filter sensitivity should be configurable from the RegEx parser.)
Please read the FAQ before asking any questions.
If you're new to newsgroups, and the files on them, you can find a very helpful guide here.
User avatar
Smite
Katamari Damacy Addict
 
Posts: 5318
Joined: Sat May 19, 2001 1:54 am
Location: Alberta, Canada

Registered Newsbin User since: 03/27/03

Postby Quade » Wed Feb 02, 2005 12:03 am

Give me a concrete reason why it needs to be case sensitive. I've never needed it but, typically my needs are simple.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 45003
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Postby Smite » Wed Feb 02, 2005 1:46 am

Well, as I said. \d should be different from \D.

I think d and D should be treated the same though.
Please read the FAQ before asking any questions.
If you're new to newsgroups, and the files on them, you can find a very helpful guide here.
User avatar
Smite
Katamari Damacy Addict
 
Posts: 5318
Joined: Sat May 19, 2001 1:54 am
Location: Alberta, Canada

Registered Newsbin User since: 03/27/03

Postby Quade » Wed Feb 02, 2005 2:56 am

Hmm. Then I'd have to write a parser that can distinquish between just text and RE and only upcase the text. I'll look at the library I use. I do believe here are flags to set.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 45003
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 17 guests