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
  • 9,801
  • 11
  • 41
  • 63
Monstieur
  • 7,874
  • 9
  • 47
  • 76

1 Answers1

0

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

alpha bravo
  • 7,520
  • 1
  • 16
  • 23