# Reading from multi-line text box line by line?

**URL:** <https://forums.unrealengine.com/t/reading-from-multi-line-text-box-line-by-line/454101>\
**Category:** Editor Scripting\
**Tags:** arrays, unreal-engine, editor, UE4, Blueprint, question\
**Created:** [August 19, 2019, 9:18pm UTC](https://forums.unrealengine.com/t/reading-from-multi-line-text-box-line-by-line/454101 "2019-08-19T21:18:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sum3rian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sum3rian](https://forums.unrealengine.com/u/Sum3rian)\
**Post date:** [August 19, 2019, 9:18pm UTC](https://forums.unrealengine.com/t/reading-from-multi-line-text-box-line-by-line/454101/1 "2019-08-19T21:18:13Z")

</div>

Hi everyone! I work for a cybersecurity firm so I decided to just make a little baby applet thing to reduce some of the tedium of the job. One of the things I wanted to do was just have a text box, where I could paste in a block of listed IP addresses, and then have them looked up through the Launch URL node. This works great for a single IP, but obviously, it can’t work for a whole bunch at a time. Is there some way of reading each line of text individually into an array and then doing a lookup for each individual one?

 ![285386-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/9/3599060b4b0888a78374d5f24866eb0a2f217d3c.jpeg)

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [August 19, 2019, 9:23pm UTC](https://forums.unrealengine.com/t/reading-from-multi-line-text-box-line-by-line/454101/2 "2019-08-19T21:23:35Z")

</div>

You can use this node

> **[Parse Into Array](https://docs.unrealengine.com/5.1/en-US/BlueprintAPI/Utilities/String/ParseIntoArray/)**
>
> Parse Into Array

Not sure if new line works as delimiter but you can use different separator like comma for example

---

<div class="post-metadata">

**Author:** ![Sum3rian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sum3rian](https://forums.unrealengine.com/u/Sum3rian)\
**Post date:** [August 20, 2019, 8:38am UTC](https://forums.unrealengine.com/t/reading-from-multi-line-text-box-line-by-line/454101/3 "2019-08-20T08:38:10Z")

</div>

Thank you so much! That worked perfectly, and for future reference, a new line does work as a delimiter!

---

<div class="post-metadata">

**Author:** ![virtualHC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/virtualhc/32/1194710_2.png) [@virtualHC](https://forums.unrealengine.com/u/virtualHC)\
**Post date:** [March 27, 2021, 8:43pm UTC](https://forums.unrealengine.com/t/reading-from-multi-line-text-box-line-by-line/454101/4 "2021-03-27T20:43:53Z")

</div>

Also for future reference, to set the delimiter to “new line” in the Parse Into Array node, simply press Shift+Enter in the Delimiter text field.

---

<div class="post-metadata">

**Author:** ![ersizhao](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ersizhao/32/1064420_2.png) [@ersizhao](https://forums.unrealengine.com/u/ersizhao)\
**Post date:** [September 25, 2024, 1:03am UTC](https://forums.unrealengine.com/t/reading-from-multi-line-text-box-line-by-line/454101/5 "2024-09-25T01:03:08Z")

</div>

Shift+Enter also works for ‘replace inline node’ if you don’t want to create Array.
