View Full Version : wildcards in sigil


bobcdy
12-18-2009, 02:42 PM
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, 05:29 PM
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 (http://doc.trolltech.com/4.6/qregexp.html#introduction).

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, 10: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