RegEx: Grabbing values between quotation marks

前端 未结 20 1252
暖寄归人
暖寄归人 2020-11-22 02:13

I have a value like this:

\"Foo Bar\" \"Another Value\" something else

What regex will return the

20条回答
  •  心在旅途
    2020-11-22 02:46

    string = "\" foo bar\" \"loloo\""
    print re.findall(r'"(.*?)"',string)
    

    just try this out , works like a charm !!!

    \ indicates skip character

提交回复
热议问题