Matching all lines in an xml tag

Post Reply
Posts: 6
Joined: Sat Jan 10, 2015 7:29 pm

Matching all lines in an xml tag

Post by Brynniel » Tue Jan 13, 2015 6:35 am

The MUD I play supports the sending of XML tags to facilitate matching specific information. <description> is one tag that I'd like to use to capture all characters between the opening <description> and closing </description> tags. This can span multiple lines, as in the example console image I've included. I've also included an image of my attempt at writing such a trigger, but it doesn't work since the text "A mailbox stands here stuffed full of messages." is also highlighted.

Some other things I've tried:
- Using three triggers: (.+) that catches all characters (initially disabled), <description> which enables the previous trigger, </description> which disables the trigger.
- Chaining and use of fire length
- Simply using one trigger with a single line: <description>(.+)</description>, but that doesn't seem to work since it appears Mudlet goes line by line and my MUD's <description> content spans multiple lines.

Thanks for your help!
test2.png (21.38 KiB) Viewed 1026 times
test1.png (20.82 KiB) Viewed 1026 times

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests