View Single Post
Old 12-14-2012, 01:37 PM   #2
chaley
"chaley", not "charley"
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: 5,195
Karma: 821512
Join Date: Jan 2010
Location: France
Device: Many android devices
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