Question: I'm looking for a code in python using regex that can perform something like this

Input: `Regex should return "String 1" or "String 2" or "String3"` 

Output: `String 1,String2,String3`

I tried `r'"*"'`

Answer: 
Just try to fetch double quoted strings from the multiline string:

```
import re

s = """ 
"my name is daniel"  "mobile 8531111453733"[[[[[[--"i like pandas"
"location chennai"! -asfas"aadhaar du2mmy8969769##69869" 
@4343453 "pincode 642002""@mango,@apple,@berry" 
"""
print(re.findall(r'"(.*?)"', s))

```
For me the only regex that ever worked right for all the cases of quoted strings with possibly escaped quotes inside of them was:

```
regex=r"""(['"])(?:\\\\|\\\1|[^\1])*?\1"""

```

This will not fail even if the quoted string ends with an escaped backslash.