Register to post in forums, or Log in to your existing account
 
:
Search found 9 matches for:
Page 1 of 1
Author Message
  Topic: Regex question
Tittering_Leo

Replies: 16
Views: 19891

PostForum: zMUD General Discussion   Posted: Thu Feb 24, 2005 5:37 pm   Subject: Regex question
Thank you sooo much!!! It works now! I had to add another replace line to handle a , and crlf so this is how it looks now

#TRIGGER "itemcap" {^(*)} {#IF (%be ...
  Topic: Regex question
Tittering_Leo

Replies: 16
Views: 19891

PostForum: zMUD General Discussion   Posted: Thu Feb 24, 2005 6:33 am   Subject: Regex question
My IF condition works out, tested it with an echo. I thrw the #priority around the #var itemline %replace line and same thing still occurs... One thing I did notice was when I let my mouse hover ov ...
  Topic: Regex question
Tittering_Leo

Replies: 16
Views: 19891

PostForum: zMUD General Discussion   Posted: Thu Feb 24, 2005 2:03 am   Subject: Regex question
the problem maelstrom, when i used those lines of code, is that it creates 1 trigger with the pattern of item1item2item3item4... And when i use the #VAR itemline %replace( @itemline, ", " "|") the ...
  Topic: Regex question
Tittering_Leo

Replies: 16
Views: 19891

PostForum: zMUD General Discussion   Posted: Wed Feb 23, 2005 6:24 pm   Subject: Regex question
Not sure if I plugged it in the right place...

trigger pattern: ^(*)
value:
#IF (%begins( %1, "Total")) {
#T- itemcap
#VAR itemline %replace( @itemline, ", ", "|")
} {
#VAR itemline ...
  Topic: Regex question
Tittering_Leo

Replies: 16
Views: 19891

PostForum: zMUD General Discussion   Posted: Wed Feb 23, 2005 4:41 am   Subject: Regex question
Well, using your triggers, it sucessfully plugs every item into the variable @itemline. Now if I can figure out a way to create a trigger for each individual item and highlight it.... Thanks Aarlot ...
  Topic: Regex question
Tittering_Leo

Replies: 16
Views: 19891

PostForum: zMUD General Discussion   Posted: Wed Feb 23, 2005 12:51 am   Subject: Regex question
Heres a sample of what Im trying to work with... each item has a different name
item, item, item, item, item, item, item, item, item
, item, item, item, item, item, item, item, item, item,
item, it ...
  Topic: Regex question
Tittering_Leo

Replies: 16
Views: 19891

PostForum: zMUD General Discussion   Posted: Tue Feb 22, 2005 10:20 pm   Subject: Regex question
Doing it that way, creates a global trigger with the pattern of (\w+) and value of #TRIGGER {broom} {#cw 12} {testing} and puts a trigger for broom in my testing folder. It only works for the first ...
  Topic: "Repeat Last" Command??
Tittering_Leo

Replies: 2
Views: 9720

PostForum: zMUD General Discussion   Posted: Tue Feb 22, 2005 10:00 pm   Subject: "Repeat Last" Command??
Im not exactly sure of how to use these, but I stumbled upon them. Hope it helps some

%lastcom the last command executed

%lastcom2 the command before the last command executed

%la ...
  Topic: Regex question
Tittering_Leo

Replies: 16
Views: 19891

PostForum: zMUD General Discussion   Posted: Tue Feb 22, 2005 6:56 pm   Subject: Regex question
Hello all,
Im working on something and was wondering if someone could give a bit o advice. What Im trying to accomplish is using #regex to find all matching words, create a trigger for each word th ...
 
Page 1 of 1
All times are GMT
© 2009 Zugg Software. Hosted on Wolfpaw.net