# RegexEntityExtractor - use the case defined in the Lookup Table

**URL:** <https://forum.rasa.com/t/regexentityextractor-use-the-case-defined-in-the-lookup-table/54316>\
**Category:** Rasa Open Source\
**Created:** [July 14, 2022, 5:45pm UTC](https://forum.rasa.com/t/regexentityextractor-use-the-case-defined-in-the-lookup-table/54316 "2022-07-14T17:45:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leonardo](https://avatars.discourse-cdn.com/v4/letter/l/e56c9b/32.png) [@Leonardo](https://forum.rasa.com/u/Leonardo)\
**Post date:** [July 14, 2022, 5:45pm UTC](https://forum.rasa.com/t/regexentityextractor-use-the-case-defined-in-the-lookup-table/54316/1 "2022-07-14T17:45:27Z")

</div>

Hi everyone, this is my very first post.  
Here is my problem:  
I have some lookup tables (e.g. countries + others) and I need to pass the valued slots to a remote Action Server.  
Everything is working fine but since my extracted values will be used by a case-sensitive query builder I need to ‘normalize’ them.  
I know I can set the case\_sensitive flag on RegexEntityExtractor, BUT I need to extract the items in the very same way they’re defined in the lists (they’re pre-defined, I can’t modify them)

I try to explain better.

I have a lookup table like this one (showing only a few examples for simplicity)

version: “2.0”

nlu:

- lookup: product  
examples: |
  - laptops
  - DVDS
  - Lamps

Consider these sentences:

How many laptops did we sell? → it will extract ‘laptops’ 🙂

How many dvds did we sell? → it will extract ‘dvds’ ☹

Once extracted I call the remote endpoint which will execute a query, hence I have to pass ‘DVDS’ not ‘dvds’ (the ‘where’ condition will work only with ‘DVDS’)

I can’t add a custom component / an intermediate Custom Action and I cannot modify the remote API, all I can do is configure Rasa 🙂  
If you have any idea about a zero-code solution please let me know,  
otherwise please tell me if I can send a PR (I already modified RegexFeaturizer and RegexEntityExtractor to show a possible solution but it must be in Rasa Open Source, not in a fork lol)

Thanks!  
Leo
