How to replace square brackets with emptystring?

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!

Solved!

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

Replace

\[[^\]]*\]

With

emptystring
2 Likes