 |
| Zugg |
Posted: Wed Apr 30, 2008 4:51 pm
Testing wildcards within {} trigger patterns |
 |
Toxic Adept
Joined: 27 May 2008 Posts: 299
|
Posted: Tue Jun 03, 2008 8:12 pm |
Well obviously I didn't go into complete detail the final product would look more like this:
| Code: |
#TR {^{%%dbkeys(@dbvar)}$} {#VAR wildcardword %1
#SHOW %db(@dbvar,%replace(%trigger,%1,"(%w)"))}
#VAR dbvar {This is a (%w) test string.=val1|key2=val2}
|
This is more of what I want. I'm hoping on an output of:
This is a good string.
Ill get a trigger fire of:
val1
From what I can tell this 'should' work. I don't have cmud for another couple hours to test. |
|
|
|
 |
Toxic Adept
Joined: 27 May 2008 Posts: 299
|
Posted: Tue Jun 03, 2008 11:16 pm |
The above DOESN't work, unfortunatly. Any other ideas on how to get the wildcarded word in the dbkey to assign to %1?
|
|
|
|
 |
|
|
|
|
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
|
|