How to find a specific pattern in a text

Hi everyone! I need to make a robot that captures a pattern of numbers within text generated from an image. I’m generating this text with OCR: Tesseract, and my pattern that I’m looking to find in this text would be XXXXX-XXX. So I would like a step that captures this pattern and puts whatever it finds inside my text into a variable. How can I do this? Thanks for support.

1 Like

Hi! Vinicius

You can use the Regex Evaluation or the Modified Java Script step.

1 Like