MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   wildcards in sigil (https://www.mobileread.com/forums/showthread.php?t=66047)

bobcdy 12-18-2009 03:42 PM

wildcards in sigil
 
I tried using the wildcard
\[(*)\]
from MS word 2000 to find [Pg 1], [Pg 2] etc. in Sigil 1.6 bookview, and the wildcard search did not work. It works fine in Word. Does anyone know if the wildcards recognized by sigil the same as those for Word? If not, could someone point me to a ref for the Sigil wildcards?

Bob

Valloric 12-18-2009 06:29 PM

Quote:

Originally Posted by bobcdy (Post 702520)
I tried using the wildcard
\[(*)\]
from MS word 2000 to find [Pg 1], [Pg 2] etc. in Sigil 1.6 bookview, and the wildcard search did not work. It works fine in Word. Does anyone know if the wildcards recognized by sigil the same as those for Word? If not, could someone point me to a ref for the Sigil wildcards?

Bob

Switch to regular expression and use "\[Pg \d+\]". I haven't yet had time to write up a description of Sigil's search engine. A (very) technical explanation of the current engine in use can be found here.

In essence, the wildcard syntax is glob-like, and the regex variant is perl-like.

Word uses something very particular and proprietary, and I don't intend to replicate that functionality. Only people who have used Word know how it's search syntax works, and the ones used in Sigil are extremely widespread in the technical world.

bobcdy 12-18-2009 11:19 PM

Valloric,
Thanks for the fast reply and help. I'll use the regular expression that you suggest; I've been working on regular expressions but I must admit that they are very complex compared to Word simple wildcards. I don't understand regex at all well.
Bob


All times are GMT -4. The time now is 06:45 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.