|
ToyMage Apprentice
Joined: 01 Sep 2005 Posts: 120
|
Posted: 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 |
|
|
|
Slaem Apprentice
Joined: 20 Sep 2005 Posts: 135
|
Posted: Tue Dec 13, 2005 9:18 pm |
If it's the end of line, then make it #TR {Jacobs hand$}
|
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: 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 :) |
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: 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 :) |
|
|
|
ToyMage Apprentice
Joined: 01 Sep 2005 Posts: 120
|
Posted: 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 |
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: 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 ? |
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: 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 :) |
|
|
|
|
|