# How to split multiline string into a string array

**URL:** <https://forum.uipath.com/t/how-to-split-multiline-string-into-a-string-array/74239>\
**Category:** Help\
**Tags:** system, activities\
**Created:** [November 5, 2018, 3:15am UTC](https://forum.uipath.com/t/how-to-split-multiline-string-into-a-string-array/74239 "2018-11-05T03:15:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vidwa](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vidwa/32/38335_2.png) [@Vidwa](https://forum.uipath.com/u/Vidwa)\
**Post date:** [November 5, 2018, 3:15am UTC](https://forum.uipath.com/t/how-to-split-multiline-string-into-a-string-array/74239/1 "2018-11-05T03:15:23Z")

</div>

how can i split a string with multiple lines which were got from screen scrapping in to a string array?

 ![split](https://global.discourse-cdn.com/uipath/original/3X/7/9/79a9efdd492c97ec676d10c072afc7c2f6261e7c.png)

---

<div class="post-metadata">

**Author:** ![Vivek\_Arunagiri](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vivek_arunagiri/32/558580_2.png) [@Vivek\_Arunagiri](https://forum.uipath.com/u/Vivek_Arunagiri)\
**Post date:** [November 5, 2018, 3:41am UTC](https://forum.uipath.com/t/how-to-split-multiline-string-into-a-string-array/74239/2 "2018-11-05T03:41:03Z")

</div>

Please refer the below post.

> [@@Unable to read the excel cell](https://forum.uipath.com/t/unable-to-read-the-excel-cell/12616/7):
>
> String[] lines = Split(Address.Trim, Environment.NewLine) validate lines count here and based on that perform below logic address = lines(0) city = lines(1) State = Split(lines(2)," ")(0) Pin= Split(lines(2)," ")(1)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [November 6, 2018, 3:41am UTC](https://forum.uipath.com/t/how-to-split-multiline-string-into-a-string-array/74239/3 "2018-11-06T03:41:12Z")

</div>

Closed on November 6, 2018, 3:41am UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
