# Regex to search for strings separated by ","

**URL:** <https://forum.bubble.io/t/regex-to-search-for-strings-separated-by/251131>\
**Category:** Plugins\
**Created:** [March 10, 2023, 4:08pm UTC](https://forum.bubble.io/t/regex-to-search-for-strings-separated-by/251131 "2023-03-10T16:08:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan40](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@ryan40](https://forum.bubble.io/u/ryan40)\
**Post date:** [March 10, 2023, 4:08pm UTC](https://forum.bubble.io/t/regex-to-search-for-strings-separated-by/251131/1 "2023-03-10T16:08:01Z")

</div>

I need to be able to extract some strings in bubble using regex.

The input is:

newProductsInfo: [[$39 OFF] - Ear Cuffs - Low in Stock,FREE Box (Previously $30),The Club: Exclusive VIP,[Exclusive Offer] / Discounted Mystery Box]

and the desired result is:  
[$39 OFF] - Ear Cuffs - Low in Stock  
FREE Box (Previously $30)  
The Club: Exclusive VIP  
[Exclusive Offer] / Discounted Mystery Box

The values are separated by a comma (,), and preceded by a ‘newProductsInfo: [’ and ended with ‘]’

[Here is a sample in trying to extract](https://regex101.com/r/vV8rmB/1)

---

<div class="post-metadata">

**Author:** ![nardo.cusimayta](https://avatars.discourse-cdn.com/v4/letter/n/ed655f/32.png) [@nardo.cusimayta](https://forum.bubble.io/u/nardo.cusimayta)\
**Post date:** [March 10, 2023, 5:27pm UTC](https://forum.bubble.io/t/regex-to-search-for-strings-separated-by/251131/2 "2023-03-10T17:27:27Z")

</div>

I created this formula, hope this help you.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/4/1/4156c150bac97c9c090c776ed667c38cb8f1b115.png)

1. 

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/2/d/2de77fe67b8bd2bc30aa3329efc2f9172824880d.png)

1. 

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/e/9/e9300d39a1d30dbffd6000f0cd9957df559cca47.png)

1. Press enter on the “replace by” input

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/7/5/75e05388550fcd17c981a0e3b98e9482a4d9179a.png)
