Page 1 of 1

Multi Line Trigger

Posted: Mon Apr 01, 2024 12:04 pm
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

Re: Multi Line Trigger

Posted: Wed Apr 03, 2024 11:08 pm
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

Re: Multi Line Trigger

Posted: Tue Apr 16, 2024 8:02 am
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+).