FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » please help with specific regular expression for mailing list footer mangling
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
please help with specific regular expression for mailing list footer mangling [message #19378] Wed, 14 July 2004 14:51 Go to next message
Tobias Eigen is currently offline  Tobias Eigen   United States
Messages: 85
Registered: June 2003
Location: Seattle, WA USA
Karma: 0
Member
Hi,

I'm having trouble with a regexp which used to work and now doesn't. Ilia or someone, can you please help me out with this?

Here's the regular expression I'm using:

--[\r\n]Time to Get Online Trainers mailing list[\r\n]Online at http:\/\/www\.timetogetonline\.org\/trainers[\r\n]Questions\? Write to trainers\@timetogetonline\.org 


I've got 'm' in the second field next to the regular expression.

And here's the text it's supposed to strip out:

Quote:

--
Time to Get Online Trainers mailing list
Online at http://www.timetogetonline.org/trainers
Questions? Write to trainers(at)timetogetonline(dot)org


What am I doing wrong?

Thanks much!

Tobias


Kabissa - Space for change in Africa
Re: please help with specific regular expression for mailing list footer mangling [message #19386 is a reply to message #19378] Wed, 14 July 2004 17:55 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
check to make sure it really uses \r\n and not \n

FUDforum Core Developer
Re: please help with specific regular expression for mailing list footer mangling [message #19391 is a reply to message #19378] Wed, 14 July 2004 18:48 Go to previous messageGo to next message
Tobias Eigen is currently offline  Tobias Eigen   United States
Messages: 85
Registered: June 2003
Location: Seattle, WA USA
Karma: 0
Member
Hi Ilia -

What do you mean? I've got \r\n on each of those lines... just like I indicated above. Is there something I'm missing?

Or do you mean for me to somehow monitor what maillist.php does?

Cheers,

Tobias


Kabissa - Space for change in Africa
Re: please help with specific regular expression for mailing list footer mangling [message #19437 is a reply to message #19391] Tue, 20 July 2004 13:08 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Try to change [\r\n] to [\r\n]+ and try escaping the - characters.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Question - Max Messages per person per day ????
Next Topic: email and IP filter
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 05:36:27 GMT 2024

Total time taken to generate the page: 0.02123 seconds