# Convert a list of text separated by lines to bundles

**URL:** <https://community.make.com/t/convert-a-list-of-text-separated-by-lines-to-bundles/19882>\
**Category:** Beginner Questions\
**Tags:** regular-expressions, text-parser\
**Created:** [November 19, 2023, 1:10pm UTC](https://community.make.com/t/convert-a-list-of-text-separated-by-lines-to-bundles/19882 "2023-11-19T13:10:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![OmriNyx](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/omrinyx/32/55914_2.png) [@OmriNyx](https://community.make.com/u/OmriNyx)\
**Post date:** [November 19, 2023, 1:10pm UTC](https://community.make.com/t/convert-a-list-of-text-separated-by-lines-to-bundles/19882/1 "2023-11-19T13:10:20Z")

</div>

Hi there,

I currently have an input of strings in a form of a text list separated by new lines, for example:  
[https://string1/file1.png](https://string1/file1.png)  
[https://string2/file2.png](https://string2/file2.png)  
[https://string45/file49.png](https://string45/file49.png)  
[https://string4/file27.png](https://string4/file27.png)

How do I make split them into separate bundles?

Sorry for the silly question… 😊

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [November 20, 2023, 7:29am UTC](https://community.make.com/t/convert-a-list-of-text-separated-by-lines-to-bundles/19882/2 "2023-11-20T07:29:38Z")

</div>

You can use the `split` built-in function with `{{newline}}` as the second parameter.

![Screenshot_2023-11-20_151108](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/5/25bb9a335fb3164f01c9f905562b1bd9ef5f7dd9.png)

---

<div class="post-metadata">

**Author:** ![OmriNyx](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/omrinyx/32/55914_2.png) [@OmriNyx](https://community.make.com/u/OmriNyx)\
**Post date:** [November 20, 2023, 8:18am UTC](https://community.make.com/t/convert-a-list-of-text-separated-by-lines-to-bundles/19882/3 "2023-11-20T08:18:52Z")

</div>

Hi @samliew That makes a lot of sense, somehow I still see one bundle in the output:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/7/c752f404ac54404945c4e8f8d4c8c890c4a11402.png)

![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/d/b/dbb3f779f451587fbf545fb0db2e720f2eb403b5.png)

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [November 20, 2023, 8:20am UTC](https://community.make.com/t/convert-a-list-of-text-separated-by-lines-to-bundles/19882/4 "2023-11-20T08:20:08Z")

</div>

If you need more assistance, please provide the output bundle of your Trigger module [1].

## 1.

Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module, save the bundle contents in your text editor as a `bundle.json` file, and upload it here into this discussion thread.

 ![Screenshot_2023-10-06_141025](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/8/2876156ab3ea5bc9e40bbc0edfb9f025406b7c48.png)

This will allow others to better assist you. Thanks!

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [November 20, 2023, 8:45am UTC](https://community.make.com/t/convert-a-list-of-text-separated-by-lines-to-bundles/19882/8 "2023-11-20T08:45:45Z")

</div>

Sorry, I can’t use that as it isn’t valid JSON. In future, could you format JSON code before submitting the reply, otherwise the forum software will convert some characters to make them invalid (checked when pasted into [https://jsonformatter.org](https://jsonformatter.org))

## 1.

Could you format your JSON by editing three backticks ````` before and after the code, like this:

> ```  
> _input/output bundle goes here_  
> ```

## 2.

or use the format code button in the editor:  
 ![Screenshot_2023-10-02_191027](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/b/4/b485b6572c7a1c438f9b191c54e63d351008304c.png)

## 3.

Alternatively, you can paste and save the contents of the bundles in your text editor as a `bundle.json` file, and upload it here into this discussion thread.

Once the post has been submitted, it’s too late to format it since it’s already butchered, and you need to **make a fresh copy of output bundle** , and **format it before submitting** the forum post.

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [November 20, 2023, 9:03am UTC](https://community.make.com/t/convert-a-list-of-text-separated-by-lines-to-bundles/19882/10 "2023-11-20T09:03:37Z")

</div>

You can use `{{space}}` instead of newline:

![Screenshot_2023-11-20_171109](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/d/e/de604f24b8d98f203bf9c91331e86cbecb5e9ee2.png)

---

<div class="post-metadata">

**Author:** ![OmriNyx](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/omrinyx/32/55914_2.png) [@OmriNyx](https://community.make.com/u/OmriNyx)\
**Post date:** [November 20, 2023, 9:09am UTC](https://community.make.com/t/convert-a-list-of-text-separated-by-lines-to-bundles/19882/11 "2023-11-20T09:09:48Z")

</div>

As always @samliew your offer worked ! 🥳 🥳 🥳 So when strings are separated by Spaces, you can use {{space}} - I couldn’t find it in any documentation.

(I had to remove the public links from the post).

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [December 4, 2023, 10:07am UTC](https://community.make.com/t/convert-a-list-of-text-separated-by-lines-to-bundles/19882/12 "2023-12-04T10:07:16Z")

</div>


