|05-11-2010, 11:33 AM||#1|
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.
So many new things to learn.
|05-11-2010, 02:49 PM||#2|
Created Sigil, FlightCrew
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.
|Thread Tools||Search this Thread|
|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|