I have a string that arrives from a webhook but this string has a blank space at the end of the text and I can’t remove it, what do I do?
If you are referring to what you have screenshot, That’s not a white space, it’s an object with a key and value pair
ok, but how i can remove this? because i need to search “Campos do Jordão” on a sheet and not "Campos do Jordão "
If you need to clean a string one day, you can use a Text Parser module with a Regex formula
\s+$
As you can see here in this example
Here is the text parser config
And here is the result
Everything about Regex is explained in the Advanced Course of Make Academy
For simplicity, just use the trim() inline function in make com
It removes any white space at the begining and end of a string
Welcome to the Make community!
To do this, you can use the built-in function replace
— “Replaces the search string with the new string.”
{{ replace (text; search string; replacement string) }}
e.g.:
{{ replace(1.text; "/\s*$/"; emptystring) }}
(copy-paste the above into the field, or type it exactly as shown)
For more information, the function’s documentation can be found in the Help Centre. You should also complete the tutorials in the Make Academy.
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 | Tutorials – Make “Manual” - search for help here first
- Make Academy – Basics 101: Learn Make properly to get your money’s worth
Help Centre Basics
- Mapping – What is mapping? What can I map?
- Mapping with arrays – How to map items in an array
- Aggregate an array for mapping complex fields
- Date Format: tokens for
parseDate
| tokens forformatDate
- HTTP modules – Make a request, Get (download) a file
- Webhooks – Error Handling, Responding to webhooks
Articles & Videos
- Router Magic Formula - YouTube
- Error Handlers in Make - YouTube playlist
- Getting started with OpenAI - How to setup and use OpenAI (ChatGPT) in Make
- Text Parser module - Use pattern matching to extract the text you want
- Webhooks – Make Academy – tutorial on how to use Webhooks
— @samliew