Trello + twilio How to generate clean text Without Spaces

Hi all, I am sending data from trello card description to twilio to send out a message. My problem is that when i send the data (card description) comes in with alot of blank
spaces, how do i remove these? i tried replace(description; n;β€œβ€) unsuccessfully. TYIA


1. Delete space before and after the Name variable

613416deffe01cda20e738cc2e22b4d6137ce7ca

2. Use the built-in function trim to remove spaces before and after a variable

e.g.:

{{ trim(38.description) }}

For more information, see the function documentation in the Help Center.

samliew – request private consultation

Join the Make Fans Discord server to chat with other makers!

@samliew thanks for the response! Unfortunately, my issue is that the spaces exist within the description that is being fed into the module( because that is how it is trello) see pictures.
I need a way to remove spaces within the variable itself.

How do you want the spaces removed? All spaces including newlines, or just newlines?

Could you provide an example of the preferred output?

You can use the built-in function replace

e.g.:

{{ replace(38.description; "/\s+/g"; space) }}

This will replace multiple consecutive spaces including newlines with a single space.

For more information, see the function documentation in the Help Center.

samliew – request private consultation

Join the Make Fans Discord server to chat with other makers!

2 Likes

@samliew you are an absolute legend ty

2 Likes

No problem, glad I could help!

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!

4. Do join the unofficial Make Discord server for live chat and video assistance

samliew – request private consultation

Join the Make Fans Discord server to chat with other makers!

1 Like

@samliew Sorry to bother again, what do i do when the data coming from trello has some text altering features and the text comes out funny. see attached How do i clean it up?


seems trello uses markdown. so updated question is: how do I remove mardown formatting from my output?

You can please create a new question thread for removing of Markdown formatting.

samliew – request private consultation

Join the Make Fans Discord server to chat with other makers!

@samliew what would the formula be to just remove new lines?