# Handlebars to split multi-line street address

**URL:** <https://connective.celigo.com/t/handlebars-to-split-multi-line-street-address/5314>\
**Category:** Integrator.io\
**Created:** [August 18, 2025, 8:02pm UTC](https://connective.celigo.com/t/handlebars-to-split-multi-line-street-address/5314 "2025-08-18T20:02:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jim\_Clarke](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@Jim\_Clarke](https://connective.celigo.com/u/Jim_Clarke)\
**Post date:** [August 18, 2025, 8:02pm UTC](https://connective.celigo.com/t/handlebars-to-split-multi-line-street-address/5314/1 "2025-08-18T20:02:59Z")

</div>

Why doesn’t the below handlebars expression work correctly? Split doesn’t seem to work with \r\n.

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/6/6e97fcf626e4be90cd8792ded407b7d813e37a8c.png)

---

<div class="post-metadata">

**Author:** ![Jim\_Clarke](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@Jim\_Clarke](https://connective.celigo.com/u/Jim_Clarke)\
**Post date:** [August 18, 2025, 8:46pm UTC](https://connective.celigo.com/t/handlebars-to-split-multi-line-street-address/5314/2 "2025-08-18T20:46:02Z")

</div>

I figured out how to do it using info from one of the Related posts that popped up!

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/9/9da57b933fb91f7b57675e1aef13815007623145.png)

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [August 18, 2025, 10:14pm UTC](https://connective.celigo.com/t/handlebars-to-split-multi-line-street-address/5314/3 "2025-08-18T22:14:58Z")

</div>

Which other post was it? Happy to see the recommendation engine churning out solutions!

---

<div class="post-metadata">

**Author:** ![Jim\_Clarke](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@Jim\_Clarke](https://connective.celigo.com/u/Jim_Clarke)\
**Post date:** [August 19, 2025, 4:42pm UTC](https://connective.celigo.com/t/handlebars-to-split-multi-line-street-address/5314/4 "2025-08-19T16:42:28Z")

</div>

> [@Handlebars to remove new line and return text in between characters](https://connective.celigo.com/t/handlebars-to-remove-new-line-and-return-text-in-between-characters/524):
>
> Hi Good Afternoon, I am currently running into an issue while trying to remove the json formatting to remove the new line symbol and extract data between text. I am successfully able to extract the information using this handlebar "{{split (split note "IndustryType:" 1) "IfOTHERdescribe:" 0}}" and I am successfully able to remove the new line "\n" using this handlebar "{{replace (jsonEncode [note])"\n" ", "}}" but when I attempt to combine them such as "{{{replace (split (split note "IndustryTy…

---

<div class="post-metadata">

**Author:** ![basvanditzhuijzen](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/basvanditzhuijzen/32/4422_2.png) [@basvanditzhuijzen](https://connective.celigo.com/u/basvanditzhuijzen)\
**Post date:** [August 21, 2025, 10:44am UTC](https://connective.celigo.com/t/handlebars-to-split-multi-line-street-address/5314/5 "2025-08-21T10:44:47Z")

</div>

Using jsonEncode will mess up special characters in the original string, you might be better off using a regular expression for this:

`{{regexMatch record.address "^(.+)$" 0 "gm"}}`

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/1/1a4e9eb1904491c71a13e6ac569390958c948369.png)
