Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Fri Apr 18, 2008 5:22 pm   

Though I knew regex!
 
Code:
#regex milling2 {^You have milled \d cedar board(s).$} {get cedar;mill cedar} {General Triggers|Crafting}


Is supposed to capture the line

You have milled 1 cedar board(s).
You have milled 2 cedar board(s).

all the way up through maybe 6 or so, definitely not more than 9. But it refuses to work! What am I doing wrong?
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: Fri Apr 18, 2008 5:25 pm   
 
You need to escape your parens.

^You have milled \d cedar board\(s\)\.$
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Fri Apr 18, 2008 5:37 pm   
 
By the way, it was supposed to be thought, not though. And thanks, I should have caught that.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net