in reply to Regex Remove String with Quotations

Thank you for the help everyone! stevieb your solution was exactly what I was looking for. Just for everyone's reference, an example input would be appelle la maison d"Alice. The output in this case would be appelle maison Alice. I have had no problems removing la and similar words, but was having some difficulty with d" since it was part of a word I wanted to keep. But it is working now, thank you everyone.

  • Comment on Re: Regex Remove String with Quotations

Replies are listed 'Best First'.
Re^2: Regex Remove String with Quotations
by Laurent_R (Canon) on Jul 14, 2015 at 14:30 UTC
    Once again, you would never see a sentence such as 'appelle la maison d"Alice' in French. Or only as an improbable error, because this is just plainly incorrect. In French, double quotes or guillemets are just the same thing as what they are in English and most European languages, i.e. a quoting punctuation character, not a part of the language itself.

    What you could see in a French sentence is "appelle la maison d'Alice", with a single quote (or apostrophe) between the "d" letter and the word "Alice".

    So your use case still does not make any sense to me.