Re: [Lang]Consult

2021-12-03 Thread Alex P
You need to use "splitByWholeSeparator" instead of "split" https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#splitByWholeSeparator-java.lang.String-java.lang.String- On Fri, Dec 3, 2021 at 7:50 AM time_crossing wrote: > > Thanks for response. > I kno

Re: [Lang]Consult

2021-12-03 Thread time_crossing
Thanks for response. I know System.out.println(StringUtils.split(code,"_")[1]); Will retrun expected result. But I think when I use String code = "constant_true"; System.out.println(StringUtils.split(code,"constant_")[0]); At first I thought return is (“" and “true”) In fact this code will ret