# How to replace square brackets with emptystring?

**URL:** <https://community.make.com/t/how-to-replace-square-brackets-with-emptystring/63874>\
**Category:** Questions\
**Tags:** functions\
**Created:** [December 12, 2024, 4:41pm UTC](https://community.make.com/t/how-to-replace-square-brackets-with-emptystring/63874 "2024-12-12T16:41:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kosio\_Angelov](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@Kosio\_Angelov](https://community.make.com/u/Kosio_Angelov)\
**Post date:** [December 12, 2024, 4:41pm UTC](https://community.make.com/t/how-to-replace-square-brackets-with-emptystring/63874/1 "2024-12-12T16:41:09Z")

</div>

Hi,

How do I go about replacing anything between square brackets with an emptystring?

Example:

From this - `Printables [https://www.lookwerelearning.com/homeschool-printables/]`

To this - Printables

Trying to eliminate links basically.

Going for scraping a web page \> html to text parser \> **replace** \> open ai, so I’m trying to optimize my openai input as best as possible and links are not needed

Thanks!

---

<div class="post-metadata">

**Author:** ![Kosio\_Angelov](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@Kosio\_Angelov](https://community.make.com/u/Kosio_Angelov)\
**Post date:** [December 12, 2024, 4:58pm UTC](https://community.make.com/t/how-to-replace-square-brackets-with-emptystring/63874/2 "2024-12-12T16:58:31Z")

</div>

Solved!

For anyone else in the future who might have this issue:

Replace

```auto
\[[^\]]*\]

```

With

```auto
emptystring

```

---

<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:** [December 26, 2024, 5:10pm UTC](https://community.make.com/t/how-to-replace-square-brackets-with-emptystring/63874/3 "2024-12-26T17:10:25Z")

</div>

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


