Get specific text from a variable

Hi!

I have assigned this text into a Variable:
"De: Ultimo Test test@test.com

Información:
Nombre: Ultimo Test
Email: test@test.com
Empresa: Ataway
Teléfono: 978505752
Puesto: Manager"

I need to get “Ultimo Test” only and set as new variable.


I tried using substring and Indexof but I couldn’t get the expected result.

Thanks!

Welcome to the Make community!

You can use a Text Parser “Match Pattern” module with this Pattern (regular expression):

Nombre: (?<Nombre>.+)

Proof https://regex101.com/r/TUGHu8/1

Important Info

  • :warning: Global match must be set to NO!

For more information, see Text Parser in the Make Help Center:

Match Pattern
The Match pattern module enables you to find and extract string elements matching a search pattern from a given text. The search pattern is a regular expression (aka regex or regexp), which is a sequence of characters in which each character is either a metacharacter, having a special meaning, or a regular character that has a literal meaning.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Worked as Expected! Thank you!


To finalize I need to consolidate each variable to add new row in a table in excel spreadsheet. How should I consolidate each text parser to do that? thanks!!

1 Like

No problem, really glad I could help!

You should only need one text parser to match everything. Please start a new thread and upload your blueprint and sample text.

1. If anyone has a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

  • others can save time when catching up with the latest activity here, and
  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

Getting Started

Help Centre Basics

Articles & Videos

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Sure I’ll open a new threat.

1 Like