# Replace text with list of item

**URL:** <https://discourse.mcneel.com/t/replace-text-with-list-of-item/161704>\
**Category:** Grasshopper\
**Tags:** windows\
**Created:** [June 20, 2023, 6:07am UTC](https://discourse.mcneel.com/t/replace-text-with-list-of-item/161704 "2023-06-20T06:07:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![saqlain](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/saqlain/32/537746_2.png) [@saqlain](https://discourse.mcneel.com/u/saqlain)\
**Post date:** [June 20, 2023, 6:07am UTC](https://discourse.mcneel.com/t/replace-text-with-list-of-item/161704/1 "2023-06-20T06:07:42Z")

</div>

Hello Everyone,  
Is there any way to replace items in a text with a list of new items… I tried to use native replace text component but it seems it only takes one item at a time so i have to create multiple replace components to replace all the items.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/b/a/9/ba9fc2ae77694788719c9a69adaf3366c40249f5.png)

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [June 20, 2023, 6:10am UTC](https://discourse.mcneel.com/t/replace-text-with-list-of-item/161704/2 "2023-06-20T06:10:41Z")

</div>

![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/c/7/1/c71f8966e64e9bd14b6eabe4c0f4704bfeb2471f.png)

---

<div class="post-metadata">

**Author:** ![saqlain](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/saqlain/32/537746_2.png) [@saqlain](https://discourse.mcneel.com/u/saqlain)\
**Post date:** [June 20, 2023, 6:24am UTC](https://discourse.mcneel.com/t/replace-text-with-list-of-item/161704/3 "2023-06-20T06:24:20Z")

</div>

Hi Martin,  
Thanks for your response  
It only works when you have two lists but with text it doesn’t work as expected .
