|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,131
Karma: 2948453
Join Date: Dec 2010
Device: Kindle 3
|
Case-sensitive search in Regex mode?
For example, if I search for "test" it wont find "Test" in this example paragraph: <p>This is a Test.</p> However, it'll find "Test" if I switch to Normal mode. I wondering whether this is by design or a bug, because the Editors with PCRE engines that I've seen so far all default to case-insensitive searches in Regex mode. |
|
|
|
|
|
#2 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,955
Karma: 2574555
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
start with (?i) <- case insensitive
but you are discussing what should be the default, right
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,992
Karma: 24340264
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
I don't know. It seems to me that regex, by design, is case insensitive. That's why you have to add flags/switches to force it to be case insensitive. Almost all apps I use that have some sort of regex engine put the onus on the user to specify they want case insensitivity. Non-regex search engines always seem to default to case insensitive though.
__________________
“Politics: A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage.” |
|
|
|
|
|
#4 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,131
Karma: 2948453
Join Date: Dec 2010
Device: Kindle 3
|
(?i) indeed works fine.
Yes. ![]() That was my assumption, too. But then again, I'm not exactly a regex guru. |
|
|
|
|
|
#5 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,195
Karma: 2508097
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
|
|
|
|
|
|
#6 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,992
Karma: 24340264
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
Quote:
That's what I'm used to as default.
__________________
“Politics: A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage.” |
|
|
|
|
|
|
#7 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,707
Karma: 777906
Join Date: Sep 2010
Device: Sony PRS 650, Kindle for PC
|
well when using the "replace" part of regex, you want some control over the case used in the replacement strings - so case sensitive is surely a sensible default
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Debug commands not case sensitive | jmseight | Kindle Developer's Corner | 0 | 04-03-2012 11:11 PM |
| Case Sensitive Regular Expression | silentguy | Calibre | 2 | 02-23-2012 04:27 PM |
| Library on Case-Sensitive file system on OS X | lbutlr | Calibre | 13 | 11-04-2011 01:20 PM |
| K3 search case sensitive only? | charonme | Amazon Kindle | 1 | 01-28-2011 05:15 PM |
| tags / series case sensitive sort | zelda_pinwheel | Calibre | 11 | 05-10-2009 01:38 PM |