|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: 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? |
|
|
|
gamma_ray Magician
Joined: 17 Apr 2005 Posts: 496
|
Posted: Fri Apr 18, 2008 5:25 pm |
You need to escape your parens.
^You have milled \d cedar board\(s\)\.$ |
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: 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.
|
|
|
|
|
|