Lookbehind to get the text in R regex [duplicate]
问题 This question already has an answer here : Get more than 1 quotations in text paragraph in R regex (1 answer) Closed 5 years ago . I have data like this: Good afternoon. Hello. My bro's name is John... and he said softly 0.8% : "Don't you think I am handsome??" HAHA. jiji. koko. I would like to take get the sentence before the quotations, and text inside the quotation by using Look Behind regex in R. First: I want to look for quotation marks in a bunch of text. Second: Look back and extract 1