It is necessary in the file with the extension. Java to change all the "_" to "". I will use replaceAll. But in the case of String s_s = "ssss_ssss_ssss"; should be String ss = "ssss_ssss_ssss";
Found this: ".*_.*"
What can be better than talking to yourself;) We are looking for in the text ". _. "
s="\"quoted\"_text"). And this is lexical analysis. - andy.37String s_s = "ssss_ssss_ssss";, then take each line separately and replace it only in the first case,replaceFirst- Pollux("[^"\\]*(?:\\.[^\\"]*)*")|_, check the contents of the 1st group / submasks, and then decide whether to remove the underscore, but then not using replaceAll, but appendReplacement. - Wiktor Stribiżew