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 05-11-2010, 11:33 AM   #1
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 15,882
Karma: 13575467
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
What's wrong with this regex?

This seems to be a pretty generic regex, but the Find/Replace dialog reports "The search term cannot be found." It works in EditpadPro so either the flavor must be wrong or I'm setting up the Find/Replace incorrectly. Regular expression is ticked.

<SPAN\s+class\s*=\s*pagenum>[^~]+?</SPAN>

So many new things to learn.
crutledge is offline   Reply With Quote
Old 05-11-2010, 02:49 PM   #2
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
You are using non-greedy quantifiers (the "[^~]+?" part). As the manual states, that is not supported. Use the "Minimal matching" option. In time, the current regex engine will be replaced with PCRE which supports such constructs.

I really do suggest that people read the manual.
Valloric 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
Sigil and Regex crutledge Sigil 2 07-14-2010 05:51 PM
What a regex is Worldwalker Calibre 20 05-10-2010 06:51 AM
Help with a regex A.T.E. Calibre 1 04-05-2010 08:50 AM
Regex help... Bobthebass Workshop 6 04-26-2009 04:54 PM
Need help with regex expression daesdaemar Workshop 18 02-07-2009 04:48 PM


All times are GMT -4. The time now is 04:52 AM.


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