I realize there are quite a number of questions on this but I have yet to find a solution suitable for my situation. I know of string.trim() and it has no ...
Hi, I'm trying to figure out a regex to use in java that would replace each space character at the beginning of the line with a . I basically want to preserve indenting that someone has done with space characters in an input field. I'm currently trying: s.replaceAll("(?