question: public static String unescapeSom ( String s ) { int idx = s . indexOf ( '\\' ) ; if ( idx < 0 ) return s ; StringBuilder sb = new StringBuilder ( ) ; int last = 0 ; while ( idx >= 0 ) { sb . append ( s . substring ( last , idx ) ) ; last = idx + 1 ; idx = s . indexOf ( '\\' , idx + 1 ) ; } sb . append ( s . substring ( last ) ) ; return sb . toString ( ) ; }
target:  Unescapes a SOM string fragment replacing "\." with ".".