How I can extract words from strings using regular expressions?

pprathameshmore

Prathamesh More

Posted on November 24, 2020

How I can extract words from strings using regular expressions?

I have searched on the internet but I don't get any solution. I just confused.

I have this string

("type": "Person" AND ("specialFields.email": "prathameshmore@gmail.com" OR "specialFields.address": "Jaysingpur"))

How can I extract data from like this

[
  '(',
  '"type": "Person"',
  'AND',
  '(',
  '"specialFields.email": "prathameshmore@gmail"',
  'OR',
  '"specialFields.address": "Jaysingpur"',
  ')',
  ')'
]
Enter fullscreen mode Exit fullscreen mode

Please anyone can help with it.

💖 💪 🙅 🚩
pprathameshmore
Prathamesh More

Posted on November 24, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related