# Branch Rules Syntax Question

**URL:** https://community.egain.com/t/branch-rules-syntax-question/89
**Category:** eGain for Cisco
**Created:** [July 27, 2021, 2:26pm UTC](https://community.egain.com/t/branch-rules-syntax-question/89 "2021-07-27T14:26:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kim.vogler](https://avatars.discourse-cdn.com/v4/letter/k/958977/32.png) [@kim.vogler](https://community.egain.com/u/kim.vogler)
#### Post date: [July 27, 2021, 2:26pm UTC](https://community.egain.com/t/branch-rules-syntax-question/89/1 "2021-07-27T14:26:46Z")

</div>

Hello. My client is requesting a Rule within a Branch node that isolates email with a subject containing the acronym “POR”. However, emails with the word “Corporation” are being caught by this rule which is not the desired outcome. We have tried several ways to configure this rule to ONLY count those three letters alone as a true outcome.

Is there a configuration syntax within a Branch Rule that can isolate ONLY when three letters alone are detected, rather than three letters within a word?

Thanks in Advance.  
KV

---

<div class="post-metadata">

### Author: ![Shalini](https://sea1.discourse-cdn.com/flex019/user_avatar/community.egain.com/shalini/32/7_2.png) [@Shalini](https://community.egain.com/u/Shalini)
#### Post date: [July 27, 2021, 6:31pm UTC](https://community.egain.com/t/branch-rules-syntax-question/89/2 "2021-07-27T18:31:03Z")

</div>

Hi Kim, hope you are doing well. I’ve connected with the SME about your question and hope to get you a response soon.

---

<div class="post-metadata">

### Author: ![Shalini](https://sea1.discourse-cdn.com/flex019/user_avatar/community.egain.com/shalini/32/7_2.png) [@Shalini](https://community.egain.com/u/Shalini)
#### Post date: [July 30, 2021, 10:14am UTC](https://community.egain.com/t/branch-rules-syntax-question/89/3 "2021-07-30T10:14:44Z")

</div>

Hi Kim, the expert asked me to tell you that you can use the “Matches” operator, it supports regex. View the attached image

 ![Workflow Branch Rule With Pattern Operator](https://us1.discourse-cdn.com/flex019/uploads/egain/original/1X/48bbbb269ece7fe918ef9b87b6ae4ba93db91bd2.jpeg)  
.

---

<div class="post-metadata">

### Author: ![kim.vogler](https://avatars.discourse-cdn.com/v4/letter/k/958977/32.png) [@kim.vogler](https://community.egain.com/u/kim.vogler)
#### Post date: [August 18, 2021, 6:02pm UTC](https://community.egain.com/t/branch-rules-syntax-question/89/4 "2021-08-18T18:02:28Z")

</div>

Thank you for this! I will attempt this with my customer.
