Can regex match all the words outside quotation marks?

前端 未结 4 1645
执念已碎
执念已碎 2021-01-06 21:25

I recently typed an essay for my lit class, and my teacher specifically stated a word limit that does not include quotations from the piece. And I thought, why not make a sc

4条回答
  •  醉酒成梦
    2021-01-06 22:04

    It would work better this way:

    Total Number of characters - Sum(characters inside quotes)

    You can use this regex to find all "Quoted" strings: \"[^"]*\"

提交回复
热议问题