Matching on newlines?

Posted by Rivius on Fri 19 Nov 2010 09:47 PM — 3 posts, 14,812 views.

#0
In my server setting in Lusternia I set it to add a linebreak after the prompt in order to keep things nice and neat.

I like the gag useless information that gets spammed towards me though, and naturally, while I can gag the line, the linebreak does not get gagged and ends up adding some very annoying newline characters in place.

Is there a way, for example, that I can gag a newline character?

Let's have this as an example:

^You have recovered equilibrium\.$

Is there something in regex that would allow me to say

^You have recovered equilibrium\.[NEWLINE]$
and gag it like that?
Australia Forum Administrator #1
Not really, because multi-line triggers can't omit from output.

What I personally do is install the Omit_Blank_Lines plugin which is around here somewhere. That just omits all blank lines. Maybe that is overkill, but it is a simple solution.
USA Global Moderator #2
The latest version of my channel capture plugin has a solution for this problem.

See

http://code.google.com/p/aardwolfclientpackage/source/diff?spec=svn99&r=99&format=side&path=/trunk/MUSHclient/worlds/plugins/aard_channels_fiendish.xml

For what I added to gag the trailing blank line.