I need to "translate" pascal code (not whole code, just lines line a:=5, or Writeln("a=5?"). In pascal = means "is equal", but my program replaces [^=!<>]=[^=!<>]with ==, so in writeln("a=5?") the ...
I'm really struggling with regex here. Using Java how would I go about replacing all spaces within quotes (double quotes really) with another character (or escaped space "\ ") but ONLY ...
I am retriving data from database where a field contains String with HTML data. I want to replace all the double quotes such that it can be used for parseJSON of ...
Regex dialect: Java
The problem: given a string, replace all occurrences of a substring inside it, except when these occurrences are inside quotes.
Example1: