Page 1 of 1

Trigger to strip numbers from line ?

Posted: Thu Jul 05, 2018 10:23 pm
by Angahran
Hi,

Trying to make a trigger for planting banner/pulling up banner.
I'd really like to have it not display/say the numbers on instanced zones.

e.g.
{s1} has planted a banner in {s2}!
Would give "GuildX has planted a banner in Chardok123456!"

I'd like to have it output "GuildX has planted a banner in Chardok!"

Re: Trigger to strip numbers from line ?

Posted: Sat Jul 07, 2018 1:59 pm
by Sirene
Try this one:

has planted a banner in (?<zone>.*)\s\d*!

Display Text: ${zone}

Re: Trigger to strip numbers from line ?

Posted: Sun Aug 05, 2018 9:39 pm
by Angahran
Thanks,

That works perfectly when there is a number in the line, e.g.
has planted a banner in chardok 12345!

But it doesn't trigger on:
has planted a banner in chardok!

Update:
This appears to work:
has planted a banner in (?<zone>.[a-zA-Z]*)\s*\d*!

Re: Trigger to strip numbers from line ?

Posted: Mon Aug 13, 2018 3:36 pm
by Angahran
This seems to be working:

has planted a banner in (?<zone>.[a-zA-Z:\- ]*)\s*\d*!