-1

I need to extract 'Processed & Soft Cheese1' from the below response:

1.)"departments":["Processed & Soft Cheese1"],

I am trying departments":["(.+?)", but it doesn't work.

Can some one please help to create regex for the same

Wiktor Stribiżew
  • 607,720
  • 39
  • 448
  • 563
zzz
  • 497
  • 3
  • 14
  • 32

1 Answers1

1

I think you need to escape the [ like \[

departments":\["(.+?)"

The fourth bird
  • 154,723
  • 16
  • 55
  • 70