I have this exactly specific requirement, Regex split string preserving quotes
but in JavaScript.
research library "not available" author:"Bernard Shaw"
to
research
library
"not available"
author:"Bernard Shaw"
I guess js does not support positive lookbehind (googled it :) ). I am not able to do it cleanly in js. Any help will be really great as am not much aware of regex.
Thanks in advance.