Thread:LunaBot/@comment-3474542-20130724232809/@comment-3474542-20130726165404

You would probably need to run multiple rules for the proper results (which is why the filter).

RULE IFNOT = "harvest_curr_type3" SUBRULE IFNOT = "harvest_curr_type2" SUBRULE IFNOT = "harvest_curr_type1" SUBRULE FIND \|\s*?harvest(cash|coconut|coin|jade|other)\s*?=\s*?(\d+)/)

REPLACE


 * harvest_curr_type1 = $1
 * harvest_curr_amt1 = $2
 * harvest($1) = $2

So the second instance would be: RULE IFNOT = "harvest_curr_type3" SUBRULE IFNOT = "harvest_curr_type2" SUBRULE IF = "harvest_curr_type1" SUBRULEFIND \|\s*?harvest(cash|coconut|coin|jade|other)\s*?=\s*?(\d+)/) REPLACE


 * harvest_curr_type2 = $1
 * harvest_curr_amt2 = $2
 * harvest($1) = $2

And the 3rd instance would be: RULE IFNOT = "harvest_curr_type3" SUBRULE IF = "harvest_curr_type2" SUBRULE IF = "harvest_curr_type1" SUBRULEFIND \|\s*?harvest(cash|coconut|coin|jade|other)\s*?=\s*?(\d+)/) REPLACE


 * harvest_curr_type3 = $1
 * harvest_curr_amt3 = $2
 * harvest($1) = $2