# Split long text into two peaces

**URL:** <https://forum.bubble.io/t/split-long-text-into-two-peaces/252907>\
**Category:** Need help\
**Created:** [March 22, 2023, 10:06am UTC](https://forum.bubble.io/t/split-long-text-into-two-peaces/252907 "2023-03-22T10:06:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![olgahvesko](https://avatars.discourse-cdn.com/v4/letter/o/d26b3c/32.png) [@olgahvesko](https://forum.bubble.io/u/olgahvesko)\
**Post date:** [March 22, 2023, 10:06am UTC](https://forum.bubble.io/t/split-long-text-into-two-peaces/252907/1 "2023-03-22T10:06:59Z")

</div>

Hi!  
I have a long text like that:  
2 = 1 Liter H2SO4  
3 = 250 ml. H2SO4  
4 = 1 Liter HNO3  
6 = 250 ml. HNO3  
7 = 1 Liter unpreserved  
8 = 250 ml. unpreserved  
9 = 1 Liter NaOH amber glass  
9\*\* = 1 Liter NaOH + zinc acetate  
10(a) 1 Liter amber glass H2SO4  
10(b) = 1 Liter amber glass unpreserved  
10(c) = 1 Liter amber glass EDTA, KH2Ct,  
ascorbic  
11 = 40 ml amber voaH2SO4  
12 = BacT Sterile, Na  
13a = 40 ml voa unpreserved  
13b = 40 ml HCL preserved  
14 = 1 Liter unpreserved (wide-mouth)  
16 = 500 ml unpreserved (wide-mouth)  
17 – 250 ml HCL  
18 = 8oz. glass no preservative  
19 – 250ml amber glass unpreserved  
20 – 250ml amber glass H2SO4

I need to split this text into two like that:  
list1: 2 = 1 Liter H2SO4  
3 = 250 ml. H2SO4  
4 = 1 Liter HNO3  
6 = 250 ml. HNO3  
7 = 1 Liter unpreserved  
8 = 250 ml. unpreserved  
9 = 1 Liter NaOH amber glass  
9\*\* = 1 Liter NaOH + zinc acetate  
10(a) 1 Liter amber glass H2SO4  
10(b) = 1 Liter amber glass unpreserved  
10(c) = 1 Liter amber glass EDTA, KH2Ct,  
ascorbic

list2: 11 = 40 ml amber voaH2SO4  
12 = BacT Sterile, Na  
13a = 40 ml voa unpreserved  
13b = 40 ml HCL preserved  
14 = 1 Liter unpreserved (wide-mouth)  
16 = 500 ml unpreserved (wide-mouth)  
17 – 250 ml HCL  
18 = 8oz. glass no preservative  
19 – 250ml amber glass unpreserved  
20 – 250ml amber glass H2SO4

Please tell me how can I do that?

---

<div class="post-metadata">

**Author:** ![artemzheg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/artemzheg/32/9651_2.png) [@artemzheg](https://forum.bubble.io/u/artemzheg)\
**Post date:** [March 22, 2023, 3:02pm UTC](https://forum.bubble.io/t/split-long-text-into-two-peaces/252907/2 "2023-03-22T15:02:40Z")

</div>

> [@olgahvesko](#):
>
> Please tell me how can I do that?

How would you like to split the text? Using what criteria?

---

<div class="post-metadata">

**Author:** ![olgahvesko](https://avatars.discourse-cdn.com/v4/letter/o/d26b3c/32.png) [@olgahvesko](https://forum.bubble.io/u/olgahvesko)\
**Post date:** [March 23, 2023, 6:01am UTC](https://forum.bubble.io/t/split-long-text-into-two-peaces/252907/3 "2023-03-23T06:01:24Z")

</div>

No criteria. Just two equal pieces.

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [March 23, 2023, 7:32am UTC](https://forum.bubble.io/t/split-long-text-into-two-peaces/252907/4 "2023-03-23T07:32:21Z")

</div>

Equal in what sense?

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [March 23, 2023, 7:36am UTC](https://forum.bubble.io/t/split-long-text-into-two-peaces/252907/5 "2023-03-23T07:36:45Z")

</div>

The split is at 10 major sections (ignoring “dot” entries) kind of like software release numbers. This isn’t really possible (in Bubble) unless the “dot releases” are different objects. I suspect the OP is operating on strings in a naïve manner.

---

<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:** [May 31, 2023, 10:07am UTC](https://forum.bubble.io/t/split-long-text-into-two-peaces/252907/6 "2023-05-31T10:07:53Z")

</div>

Closed on May 31, 2023, 10:07am UTC

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