|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Sat Dec 06, 2003 11:10 pm
limiting triggers... |
More specifically triggers on a variable array.
Is there a way to set the trigger not to fire on word fragments, but only on whole words? |
|
|
|
Toetag Magician
Joined: 10 Oct 2000 Posts: 356 Location: USA
|
Posted: Sun Dec 07, 2003 4:10 am |
depends on how your trigger is setup, i would think. What does your trigger and variable array look like corrently?
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Dec 07, 2003 5:28 am |
quote: Is there a way to set the trigger not to fire on word fragments, but only on whole words?
No, not with the current public version.
Of course, it's possible to include spaces, commas, or other word-margins in your patterns but you'll usually need several triggers to do it that way. One trigger where the stringlist is at the beginning of the line (^) and followed by a space or punctuation mark (%p matches both), one where it's the only thing on the line (^ before and $ after), one where it's preceded by a space at the end of the line (space before and $ after), and one where it's in the middle of the line (space before and %p after). |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Sun Dec 07, 2003 9:36 pm |
its a substitution trigger on the array, the main problem is that one of the members is 'Lor', so every time lord so-and-so walks in it fires off, and i was trying all sorts of different patterns in the hopes of getting what i was aimming for without much success...
ZUGG! Can you please make it possible to limit triggers to only fire on whole words and not every fragment that fits? |
|
|
|
Htang Beginner
Joined: 20 Mar 2001 Posts: 24 Location: United Kingdom
|
Posted: Mon Dec 08, 2003 2:12 am |
My workaround for this problem is just to include one or even 2 spaces in the variable array. i.e. instead of having just "Lor" in there, put "Lor " or even " Lor " that guarantees that only the whole word is matched. The only time this would cause a problem is if there are occasions where something could be prefixed or suffixed to the name in question.
Htang
P.S. Are the names always in capitals, and lord so-and-so always lowercase? If thats the case turn on case sensitivity!! Its worked for me before. |
|
|
|
|
|