# Replace or delete parts of text (iOS)

**URL:** https://community.thunkable.com/t/replace-or-delete-parts-of-text-ios/70821
**Category:** Questions about Thunkable X
**Created:** [March 1, 2019, 9:55pm UTC](https://community.thunkable.com/t/replace-or-delete-parts-of-text-ios/70821 "2019-03-01T21:55:09Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Beniamonti](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/beniamonti/32/30517_2.png) [@Beniamonti](https://community.thunkable.com/u/Beniamonti)
#### Post date: [March 1, 2019, 9:55pm UTC](https://community.thunkable.com/t/replace-or-delete-parts-of-text-ios/70821/1 "2019-03-01T21:55:09Z")

</div>

Hi,  
how replace or delete text from point to point?

---

<div class="post-metadata">

### Author: ![Cian\_O\_Sullivan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cian_o_sullivan/32/34494_2.png) [@Cian\_O\_Sullivan](https://community.thunkable.com/u/Cian_O_Sullivan)
#### Post date: [March 1, 2019, 10:52pm UTC](https://community.thunkable.com/t/replace-or-delete-parts-of-text-ios/70821/2 "2019-03-01T22:52:12Z")

</div>

If the points are the same, you can create a list and the replace the respective item in the list.

---

<div class="post-metadata">

### Author: ![Beniamonti](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/beniamonti/32/30517_2.png) [@Beniamonti](https://community.thunkable.com/u/Beniamonti)
#### Post date: [March 1, 2019, 11:25pm UTC](https://community.thunkable.com/t/replace-or-delete-parts-of-text-ios/70821/3 "2019-03-01T23:25:46Z")

</div>

hi, dear  
I would like to delete in an alphanumeric string starting from a point p1 to a point p2

---

<div class="post-metadata">

### Author: ![Cian\_O\_Sullivan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cian_o_sullivan/32/34494_2.png) [@Cian\_O\_Sullivan](https://community.thunkable.com/u/Cian_O_Sullivan)
#### Post date: [March 2, 2019, 12:12am UTC](https://community.thunkable.com/t/replace-or-delete-parts-of-text-ios/70821/4 "2019-03-02T00:12:49Z")

</div>

Is the string the same size.

Or it is various sizes but you know you only want to keep the first x characters and the last Y characters.

You can use this

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/7/5749f34e32e07d48adac747d732bfb7a388ef4f7.png)

---

<div class="post-metadata">

### Author: ![Beniamonti](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/beniamonti/32/30517_2.png) [@Beniamonti](https://community.thunkable.com/u/Beniamonti)
#### Post date: [March 4, 2019, 12:38am UTC](https://community.thunkable.com/t/replace-or-delete-parts-of-text-ios/70821/5 "2019-03-04T00:38:47Z")

</div>

ok Cian,  
but it’s not exactly the same thing because in the text there can be more occurrences of the same substring.

---

<div class="post-metadata">

### Author: ![Cian\_O\_Sullivan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cian_o_sullivan/32/34494_2.png) [@Cian\_O\_Sullivan](https://community.thunkable.com/u/Cian_O_Sullivan)
#### Post date: [March 4, 2019, 1:15am UTC](https://community.thunkable.com/t/replace-or-delete-parts-of-text-ios/70821/6 "2019-03-04T01:15:58Z")

</div>

Give me an example of the string please

---

<div class="post-metadata">

### Author: ![Beniamonti](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/beniamonti/32/30517_2.png) [@Beniamonti](https://community.thunkable.com/u/Beniamonti)
#### Post date: [March 4, 2019, 9:47am UTC](https://community.thunkable.com/t/replace-or-delete-parts-of-text-ios/70821/7 "2019-03-04T09:47:54Z")

</div>

ok Cian,  
trying to give you an example I understood your solution. it can work in my case.  
Many thanks.

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 12:16pm UTC](https://community.thunkable.com/t/replace-or-delete-parts-of-text-ios/70821/8 "2024-11-08T12:16:11Z")

</div>


