# Using split function

**URL:** <https://community.make.com/t/using-split-function/56044>\
**Category:** Questions\
**Tags:** string-functions\
**Created:** [September 25, 2024, 11:46am UTC](https://community.make.com/t/using-split-function/56044 "2024-09-25T11:46:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![T\_Messi](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@T\_Messi](https://community.make.com/u/T_Messi)\
**Post date:** [September 25, 2024, 11:46am UTC](https://community.make.com/t/using-split-function/56044/1 "2024-09-25T11:46:47Z")

</div>

I have a variable coming from one of my module, which is something like :

```auto
"inline; filename=Rechnung-RE-143714-46566.pdf"

```

that i access within the variable 10.headers.`content-disposition

I want to have only **Rechnung-RE-143714-46566.pdf**  
So far i have tried :

`split(10.headers.`content-disposition`, "filename=")[1]`  
and  
`split(10.headers.`content-disposition`; """=""")}}[1]`

both ending up not giving me what I wanted.  
What I am doing wrong ?

---

<div class="post-metadata">

**Author:** ![Stoyan\_Vatov](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Stoyan\_Vatov](https://community.make.com/u/Stoyan_Vatov)\
**Post date:** [September 25, 2024, 11:49am UTC](https://community.make.com/t/using-split-function/56044/3 "2024-09-25T11:49:16Z")

</div>

Hey Tatiana,

the split function turns a string into an array. You are either looking for substring() if its fixed length or a text parser to match pattern using a regular expression.

---

<div class="post-metadata">

**Author:** ![T\_Messi](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@T\_Messi](https://community.make.com/u/T_Messi)\
**Post date:** [September 25, 2024, 1:09pm UTC](https://community.make.com/t/using-split-function/56044/4 "2024-09-25T13:09:32Z")

</div>

Hi!

Thanks for your answer, that worked out 🙂

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [October 9, 2024, 1:22pm UTC](https://community.make.com/t/using-split-function/56044/5 "2024-10-09T13:22:23Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


