View Single Post
Old 12-14-2012, 11:36 AM   #1
da_jane
Evangelist
da_jane will become famous soon enoughda_jane will become famous soon enoughda_jane will become famous soon enoughda_jane will become famous soon enoughda_jane will become famous soon enoughda_jane will become famous soon enough
 
Posts: 405
Karma: 692
Join Date: Sep 2006
Device: Samsung Galaxy Note 3 | Kindle Paperwhite | iPad Mini
Template language query. Removing all text after a set of characters

The metadata request pulls down Reviews and "About the Author" and "Excerpt" text that I want to exclude.

It looks like that data is always preceded by three number signs ###

After some noodling at Rubular, it appears that this Reg Expression captures all the text after ### (actually it includes the ### which is good).

\###(.*)

In calibre, I tried

{comments:re(\###(.*),)}

However, this simply removes the ### and not the text after. Suggestions?

Last edited by da_jane; 12-14-2012 at 11:37 AM. Reason: Replacing the Calibre code.
da_jane is offline   Reply With Quote