View Single Post
Old 12-14-2012, 01:37 PM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Are you making a composite custom column (column made from other columns) or are you using search/replace to remove the unwanted stuff?

Your template works fine for me when making a custom column for comments that don't contains newlines. However, it would be better written as
Code:
{comments:re(###.*,)}
If your comments contain newlines (my guess is that there is a newline after the ###) then you should use something like
Code:
{comments:'re($,  '(?s)###(.*)', '') '}
The (?s) in the beginning tells the regexp processor that the . character can match newlines.
chaley is offline   Reply With Quote