![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,724
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Case-sensitive search in Regex mode?
I noticed that Sigil 6.2 won't find a capitalized word if Regex mode is selected.
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 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,003
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
start with (?i) <- case insensitive
but you are discussing what should be the default, right |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,539
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
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.
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,724
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
(?i) indeed works fine.
Yes. ![]() That was my assumption, too. But then again, I'm not exactly a regex guru. |
![]() |
![]() |
![]() |
#5 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,539
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
That's what I'm used to as default. |
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
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 | Thread Starter | Forum | Replies | Last Post |
Case Sensitive Regular Expression | silentguy | Calibre | 5 | 05-11-2015 05:56 AM |
Debug commands not case sensitive | jmseight | Kindle Developer's Corner | 0 | 04-03-2012 11:11 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 |