# How to use regex patterns for entity recognition?

**URL:** <https://forum.rasa.com/t/how-to-use-regex-patterns-for-entity-recognition/27540>\
**Category:** Rasa Open Source\
**Created:** [April 15, 2020, 3:49pm UTC](https://forum.rasa.com/t/how-to-use-regex-patterns-for-entity-recognition/27540 "2020-04-15T15:49:09Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ltfschoen](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ltfschoen/32/21976_2.png) [@ltfschoen](https://forum.rasa.com/u/ltfschoen)\
**Post date:** [December 4, 2022, 6:19am UTC](https://forum.rasa.com/t/how-to-use-regex-patterns-for-entity-recognition/27540/5 "2022-12-04T06:19:03Z")

</div>

> [@\_sanjay\_r](#):
>
> ( Also, not sure if I’m right on this, but try shifting the `## regex:code` after the `## intent:course_code`.)

it appears `regex` could be before `intent` according to the documentation here [NLU Training Data](https://rasa.com/docs/rasa/nlu-training-data/#regular-expressions-for-rule-based-entity-extraction)

---

_[View the full topic](https://forum.rasa.com/t/how-to-use-regex-patterns-for-entity-recognition/27540)._
