# String to array? plz help :S

**URL:** <https://forum.kirupa.com/t/string-to-array-plz-help-s/193561>\
**Category:** Uncategorized\
**Created:** [July 14, 2006, 4:19am UTC](https://forum.kirupa.com/t/string-to-array-plz-help-s/193561 "2006-07-14T04:19:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![louissi](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/louissi/32/2189_2.png) [@louissi](https://forum.kirupa.com/u/louissi)\
**Post date:** [July 14, 2006, 4:19am UTC](https://forum.kirupa.com/t/string-to-array-plz-help-s/193561/1 "2006-07-14T04:19:50Z")

</div>

Hey! I am making a tile game map editor, and i want to save a map. I would like my editor to be able to load a “copy and paste” code, but i dont know how. Here is an example of the code generated by my editor. Each number is a tile type.

> level\_array = [[1,1,1,1,1,1,1,1,1,1], [1,1,1,1,1,1,1,1,1,1], [1,1,1,1,1,1,1,1,2,1], [3,1,2,1,1,1,1,2,2,1], [6,6,6,6,6,6,6,6,6,6] ];

In the load window, there is a text box input where you can paste this code. My problem is that I don’t know how to transform the pasted text in an array.

Any hint?

Free egg for anyone who helps me! 🥚
