Multi Line Trigger

Post Reply
MudletUsr1155
Posts: 1
Joined: Mon Apr 01, 2024 12:00 pm

Multi Line Trigger

Post by MudletUsr1155 »

Hi I'm trying to simply match multiple lines of text, I just want the last word on the second line, but it's not working.

My trigger:
Right here you see:
(.*) (\w+)\n


So for example this text I would want "mouse"

Right here you see:
- A field mouse
- The rabbit

Thanks

User avatar
demonnic
Posts: 886
Joined: Sat Dec 05, 2009 3:19 pm

Re: Multi Line Trigger

Post by demonnic »

Did you check off the Multi-line AND box and bump the line delta to 1? I would also change the `\n` to $, and make sure the second pattern is set to perl regex.
multiline.png

protectqiqi
Posts: 3
Joined: Mon Apr 01, 2024 3:43 am

Re: Multi Line Trigger

Post by protectqiqi »

demonnic wrote:
Wed Apr 03, 2024 11:08 pm
Did you check off the Multi-line AND box and bump the line delta to 1? I would also change the `\n` to $, and make sure the second pattern is set to perl regex.

multiline.png
Maybe also add "\s+" between (.*) and (\w+).

Post Reply