Matching brackets in triggers

Post Reply
ali0sha
Posts: 4
Joined: Tue Jun 30, 2009 7:25 am

Matching brackets in triggers

Post by ali0sha »

I'm trying to create a trigger to match channels, such as: '(Novitiates):' or '(Cyrene):' but the following regex doesn't seem to be firing:

Code: Select all

\((.*)\)\:
Any ideas?

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Matching brackets in triggers

Post by Heiko »

The regex is ok and will work if you enable the trigger and set the pattern type to perl regex. Mudlet has various pattern types and only one pattern type understands regex patterns.
There is a button with a bug icon in the trigger editor that will show a debug console with tons of helpful output.

ali0sha
Posts: 4
Joined: Tue Jun 30, 2009 7:25 am

Re: Matching brackets in triggers

Post by ali0sha »

Turns out I hadn't activated the trigger group *facepalm*

Post Reply