Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
ToyMage
Apprentice


Joined: 01 Sep 2005
Posts: 120

PostPosted: Tue Dec 13, 2005 8:10 pm   

Trigger
 
My current trigger: ^(*)

Captures both 1) and 2).

I was hoping to trigger only on 1) which ends without "." or any puncutation. Can any teach me how to do it?

1)
Jacobs hand

2)
Jacobs hand.

Toy Mage
Reply with quote
Slaem
Apprentice


Joined: 20 Sep 2005
Posts: 135

PostPosted: Tue Dec 13, 2005 9:18 pm   
 
If it's the end of line, then make it #TR {Jacobs hand$}
_________________
Show your love.
Support Zugg Software!
Donate to zugg@zuggsoft.com with PayPal Send Money.
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Wed Dec 14, 2005 12:13 am   
 
Use {^string} to NOT match something. So I guess you would need ^(*){^.}$ give it a try and see what happens.
_________________
Taz :)
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Wed Dec 14, 2005 12:16 am   
 
In fact don't give it a try and see what happens, do use that trigger pattern (because it does what you want) but make sure you turn off the trigger on trigger option before you save it.
_________________
Taz :)
Reply with quote
ToyMage
Apprentice


Joined: 01 Sep 2005
Posts: 120

PostPosted: Wed Dec 14, 2005 1:45 am   
 
Thanks Taz,

It works! Now my mapping #Tag Name is must more sharper, but I have the following questions.

1) I tried changing {^.}$ to {^?} and it doesn't work. :(

2) How do I get it not to match a list of strings? Other than ".", I like to include "?", "/", "\".

Toy
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Wed Dec 14, 2005 2:11 am   
 
try {^~?}

I think in triggers the ? is a special regex char or something. the ~ will make it so that you are looking for the actual ?
_________________
http://www.Aardwolf.com
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Wed Dec 14, 2005 3:07 am   
 
Ok well it is easier to produce something like that using regex so use the following pattern ^(.*)[^.?\\/]$ and make sure you tick the Perl regular expression tick box directly under the Pattern: input box.

*[Edit: erk, madness, had to put in three backslashes in order for a double backslash to display]
_________________
Taz :)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net