Quantcast
Channel: MobileRead Forums - Calibre
Viewing all articles
Browse latest Browse all 31510

Template language query. Removing all text after a set of characters

$
0
0
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?

Viewing all articles
Browse latest Browse all 31510

Trending Articles