# Substring in bubble

**URL:** <https://forum.bubble.io/t/substring-in-bubble/126742>\
**Category:** Need help\
**Created:** [December 21, 2020, 7:54am UTC](https://forum.bubble.io/t/substring-in-bubble/126742 "2020-12-21T07:54:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alonoffice4389](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@alonoffice4389](https://forum.bubble.io/u/alonoffice4389)\
**Post date:** [December 21, 2020, 7:54am UTC](https://forum.bubble.io/t/substring-in-bubble/126742/1 "2020-12-21T07:54:54Z")

</div>

How can I substring in bubble? for example I would like to get ‘23’ from the ‘123’

---

<div class="post-metadata">

**Author:** ![johnny](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnny/32/203020_2.png) [@johnny](https://forum.bubble.io/u/johnny)\
**Post date:** [December 21, 2020, 8:02am UTC](https://forum.bubble.io/t/substring-in-bubble/126742/2 "2020-12-21T08:02:19Z")

</div>

Hey @alonoffice4389,

You can use the truncated text type: [Introduction - Bubble Docs](https://bubble.io/reference#Data.Messages.text)

---

<div class="post-metadata">

**Author:** ![alonoffice4389](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@alonoffice4389](https://forum.bubble.io/u/alonoffice4389)\
**Post date:** [December 28, 2020, 11:51am UTC](https://forum.bubble.io/t/substring-in-bubble/126742/3 "2020-12-28T11:51:26Z")

</div>

I don’t see there options to cut string.  
for example I would like to cut ‘1|23’ to ‘1|’.  
How can I do that?

---

<div class="post-metadata">

**Author:** ![cmarchan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cmarchan/32/253062_2.png) [@cmarchan](https://forum.bubble.io/u/cmarchan)\
**Post date:** [December 28, 2020, 12:22pm UTC](https://forum.bubble.io/t/substring-in-bubble/126742/4 "2020-12-28T12:22:04Z")

</div>

:truncated to 1

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [March 1, 2021, 7:54am UTC](https://forum.bubble.io/t/substring-in-bubble/126742/5 "2021-03-01T07:54:56Z")

</div>

This topic was automatically closed after 70 days. New replies are no longer allowed.
