Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-03-2013, 10:57 AM   #1
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 1,860
Karma: 4630359
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.
Doitsu is offline   Reply With Quote
Old 01-03-2013, 11:33 AM   #2
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,232
Karma: 5495470
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
start with (?i) <- case insensitive

but you are discussing what should be the default, right
theducks is online now   Reply With Quote
Old 01-03-2013, 11:37 AM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 8,756
Karma: 39465375
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.
DiapDealer is online now   Reply With Quote
Old 01-03-2013, 11:53 AM   #4
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 1,860
Karma: 4630359
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by theducks View Post
start with (?i) <- case insensitive
(?i) indeed works fine.

Quote:
Originally Posted by theducks View Post
but you are discussing what should be the default, right
Yes.

Quote:
Originally Posted by DiapDealer View Post
I don't know. It seems to me that regex, by design, is case insensitive.
That was my assumption, too. But then again, I'm not exactly a regex guru.
Doitsu is offline   Reply With Quote
Old 01-03-2013, 12:17 PM   #5
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 5,980
Karma: 4346919
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by DiapDealer View Post
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.
I think there's an "in" too many.

I don't know what should be the default, but I'm used to my case-sensitive vim settings.
Jellby is offline   Reply With Quote
Old 01-03-2013, 01:20 PM   #6
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 8,756
Karma: 39465375
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Jellby View Post
I think there's an "in" too many.

I don't know what should be the default, but I'm used to my case-sensitive vim settings.
Oops! You're correct. I meant "regex, by design, is case sensitive"... unless you tell it to behave otherwise.

That's what I'm used to as default.
DiapDealer is online now   Reply With Quote
Old 01-04-2013, 06:44 AM   #7
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,603
Karma: 1089170
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Sony T2, Kindle Fire HDX 8.9 , 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
cybmole is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 12:04 PM.


MobileRead.com is a privately owned, operated and funded community.