How to get 3rd line from a block of text

:bullseye: What is your goal?

I have a block of text and want to extract specifically the 3rd line.

:thinking: What is the problem?

The ‘Alternative solution’ posted by samilew Read multiple lines of a CSV file and parse each line individually into columns - #4 by samliew is indeed working perfectly for me — it successfully splits the lines of my text into separate operations.

However, I’m running into trouble with the Gmail module: I’m not sure how to attach specifically the 3rd operation to my email. I’m very new to Make and have little experience, so I would really appreciate any guidance or step-by-step help.

Thank you in advance!

:camera_with_flash: Screenshots: scenario setup, module configuration, errors



Hello,

Assuming it will always be the 3rd line of text separated by a newline character, you can use this simple function:

{{get(split(2.value; newline); 3)}}

Where get() retrieves the 3rd element of the array built by splitting the text by the newline character.

For example purposes I build that scenario for you. You do not have to use Set multiple variables you can use provided formula directly in your gmail module.

thank you so much! worked.

1 Like