1

If my input string is:

Word "Two Words" Quo\"te "Quo\"ted Words"

The output should be:

Word Two Words Quo"te Quo"ted Words.

I can't seem to work in the escaped quotes in my regex.

Rahil Wazir
  • 10,007
  • 11
  • 42
  • 64
Monstieur
  • 7,992
  • 10
  • 51
  • 77

1 Answers1

0

split using this pattern (?<!\\)".*?(?<!\\)"(*SKIP)(*F)|\s
Demo

alpha bravo
  • 7,838
  • 1
  • 19
  • 23