Hi joostwmd,
Could you get the example to run locally before you started to play around with your regular expression?
It is actually two parts :
In the file contoso-order-number-manifest.xml line 52-56
<Rule xsi:type="RuleCollection" Mode="And">
<Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
<Rule xsi:type="ItemHasRegularExpressionMatch" RegExName="9Digits" RegExValue="\d{9}" PropertyName="BodyAsPlaintext"/>
</Rule>
<DisableEntityHighlighting>false</DisableEntityHighlighting>
Notice 9Digits - it must match so it goes to second one: line 74-77
<Rule xsi:type="RuleCollection" Mode="And">
<Rule xsi:type="ItemIs" ItemType="Message" />
<Rule xsi:type="ItemHasRegularExpressionMatch" RegExName="OrderNumber" RegExValue="CO-\d{9}" PropertyName="BodyAsPlaintext"/>
</Rule>
So i guess if you just put the rule either in top block or make it pass on to second rule it should work!
Hope that helps!