Body mangling in a mailing list [message #14793] |
Thu, 20 November 2003 22:15 |
Squeebee
Messages: 110 Registered: November 2003
Karma: 0
|
Senior Member |
|
|
I am looking at the message body mangling, and I would like to remove any line that begins with a > to strip quoting (or maybe can it be converted to a fudcode quote block?) and also like to remove anything after a -- line:
That is a standard footer I want to remove when I get mailing list importing working.
Thanks for your help, I haven't had time to learn regular expressions all that well yet.
--The pieces are coming together for a move away from PHPbb
|
|
|
|
|
|
|
|
|
|
Re: Body mangling in a mailing list [message #14893 is a reply to message #14889] |
Mon, 24 November 2003 21:09 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
In my local test on the regular expression it appeard to work correctly...
Plus from what I can see in the picture you didn'r copy the regex correctly, you have _ and ! in it, which I didn't have.
FUDforum Core Developer
|
|
|
|
|
|
|
|
|
Re: Body mangling in a mailing list [message #14904 is a reply to message #14903] |
Mon, 24 November 2003 22:26 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
could you send me (As file attachment) 1 complete message from the mailing list and I'll try the regex myself.
FUDforum Core Developer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Body mangling in a mailing list [message #24681 is a reply to message #24078] |
Mon, 09 May 2005 09:42 |
_2ge_
Messages: 7 Registered: May 2005
Karma: 0
|
Junior Member |
|
|
hello, you should use these:
for removing "-- " and after that:
"^--[\s\r]*\n"
"s"
""
for removing ">" lines (you should easily change that to fud quoting)
"^(>\s*)+.*"
"s"
""
Hope works. I didn't try them :)
|
|
|