|
AesirMergera Beginner
Joined: 07 Oct 2004 Posts: 25
|
Posted: Tue May 31, 2005 6:42 pm
Multisentence capturing |
I'm looking to make a trigger that can capture multiple sentences from one say... Here's an example.
Dingus says, "I like James. No I don't like Tona! Is Thomas Jefferson a wig?"
I'm not particularly worried about linewrap and I have found a way to capture multiples of the same ending by using %word("%1", "."). What I'm looking for is something to seperate the sentences and throw them all into seperate variables no matter what stop is used (. ? or !) so I can then throw them at other things and make a glorious explosion of things of that nature |
|
|
|
AesirMergera Beginner
Joined: 07 Oct 2004 Posts: 25
|
Posted: Tue May 31, 2005 6:45 pm |
One more thing. In multiple loop and forall values, how do I sort through all the %i's I know the first one is lower case and the second is upper case but how do the rest go? Just curious
|
|
|
|
Private Adept
Joined: 10 Jan 2002 Posts: 264 Location: USA
|
Posted: Wed Jun 01, 2005 5:35 pm |
with nested #LOOPs I use %i, %j, %k, etc
|
|
|
|
DeReP Adept
Joined: 14 Jun 2003 Posts: 222 Location: Chile
|
Posted: Wed Jun 01, 2005 8:54 pm |
#TRIGGER {Dingus says, "(*)"} {#VAR sentence {%replace(%replace(%replace(%1,".","|"),"!","|"),"?","|")}}
That should leave 1 array with senteces as values that you can later use with %item or a #FORALL command |
|
|
|
|
|