# Replace text that contains a 4 digit number

**URL:** <https://community.thunkable.com/t/replace-text-that-contains-a-4-digit-number/119440>\
**Category:** Questions about Thunkable X\
**Created:** [June 25, 2019, 12:33am UTC](https://community.thunkable.com/t/replace-text-that-contains-a-4-digit-number/119440 "2019-06-25T00:33:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [June 25, 2019, 12:33am UTC](https://community.thunkable.com/t/replace-text-that-contains-a-4-digit-number/119440/1 "2019-06-25T00:33:03Z")

</div>

I need to replace text that will be a value of 1000 to 9999 (a 4 digit number, as a string)

Is there any way of doing this without making thousands of if statements.

Thanks

---

<div class="post-metadata">

**Author:** ![CBVG](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cbvg/32/32401_2.png) [@CBVG](https://community.thunkable.com/u/CBVG)\
**Post date:** [June 25, 2019, 1:26am UTC](https://community.thunkable.com/t/replace-text-that-contains-a-4-digit-number/119440/2 "2019-06-25T01:26:17Z")

</div>

Do you mean you need to replace, say, the _number_ 1234 with the STRING “1234”?

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [June 25, 2019, 1:30am UTC](https://community.thunkable.com/t/replace-text-that-contains-a-4-digit-number/119440/3 "2019-06-25T01:30:05Z")

</div>

Well, this is what i thought the issue was but it is actually html tags. I am working with wordpress api, and there are html tags. i have just encountered another issue. basically i need to make replace text blocks that have the most common html tags such as

’ " […] and so on.

Running into more problems as well.

---

<div class="post-metadata">

**Author:** ![davidsobhysabetb](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@davidsobhysabetb](https://community.thunkable.com/u/davidsobhysabetb)\
**Post date:** [February 7, 2020, 4:39pm UTC](https://community.thunkable.com/t/replace-text-that-contains-a-4-digit-number/119440/4 "2020-02-07T16:39:43Z")

</div>

Join the number to an empty text variable .

---

<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, 11:41am UTC](https://community.thunkable.com/t/replace-text-that-contains-a-4-digit-number/119440/5 "2024-11-08T11:41:09Z")

</div>


