I use the macro below to replace double quotation marks (") that are not next to a comma not (",) or (",) with the string "(qt)".
It works, except that a series such as the following
4*6 "Butterfly" "Botanical" frame
gets translated to this
4*6 (qt)Butterfly(qt) "Botanical(qt) frame
It ignores the third quotation mark. If I run the macro again, it changes the last quotation mark.
Something is wrong with my regexp. The third quotation mark is not satisfying the search condition for some reason. But I don't know why. Can anyone spot the problem?
It works, except that a series such as the following
4*6 "Butterfly" "Botanical" frame
gets translated to this
4*6 (qt)Butterfly(qt) "Botanical(qt) frame
It ignores the third quotation mark. If I run the macro again, it changes the last quotation mark.
Something is wrong with my regexp. The third quotation mark is not satisfying the search condition for some reason. But I don't know why. Can anyone spot the problem?
Code: Select all
InsertMode
ColumnModeOff
HexOff
UnixReOn
Top
Find RegExp "([^,])"([^,])"
Replace All "\1(qt)\2"