# \## intent: math\_expr?

**URL:** <https://forum.rasa.com/t/intent-math-expr/20819>\
**Category:** Rasa Open Source\
**Created:** [November 3, 2019, 8:14pm UTC](https://forum.rasa.com/t/intent-math-expr/20819 "2019-11-03T20:14:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sten](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@sten](https://forum.rasa.com/u/sten)\
**Post date:** [November 3, 2019, 8:14pm UTC](https://forum.rasa.com/t/intent-math-expr/20819/1 "2019-11-03T20:14:07Z")

</div>

Is there a way to recognize Regex as intent i.e. something like this :

```
## intent: math_expr
- [+-*/()0-9](expr)

```

Also I can’t seem to be able to capture the regex-match into a SLOT ???

If there is a way to access the input-text inside the action-code that could some solution too !

---

<div class="post-metadata">

**Author:** ![Ghostvv](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ghostvv/32/211_2.png) [@Ghostvv](https://forum.rasa.com/u/Ghostvv)\
**Post date:** [November 4, 2019, 11:38am UTC](https://forum.rasa.com/t/intent-math-expr/20819/2 "2019-11-04T11:38:00Z")

</div>

the easiest way to use regex for intent classification is to create a custom classifier

---

<div class="post-metadata">

**Author:** ![sten](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@sten](https://forum.rasa.com/u/sten)\
**Post date:** [November 4, 2019, 3:03pm UTC](https://forum.rasa.com/t/intent-math-expr/20819/3 "2019-11-04T15:03:17Z")

</div>

how do I do that ?

---

<div class="post-metadata">

**Author:** ![Ghostvv](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ghostvv/32/211_2.png) [@Ghostvv](https://forum.rasa.com/u/Ghostvv)\
**Post date:** [November 5, 2019, 8:16am UTC](https://forum.rasa.com/t/intent-math-expr/20819/4 "2019-11-05T08:16:49Z")

</div>

please check the docs on how to create custom nlu components: [Custom NLU Components](https://rasa.com/docs/rasa/api/custom-nlu-components/)
