Is there any way to detect only the double quotes that are not surrounded by semi-column or if it is at the end of the line ? Example:
test1;"col11 " col12";"col3"
test1;"col11" col12";"col3"
test1;"col11 "col12";"col3"
test1;"col11"col12";"col3"
Output :
test1;"col11 col12";"col3"
test1;"col11 col12";"col3"
test1;"col11 col12";"col3"
test1;"col11col12";"col3"
I used this regex : \b(?!;"|";|"$|"\n)" but the \b excludes the double quote preceded by a space.