I think Jörg is right. You may change the suffix StrMather through #setVariableSuffixMatcher() on a StrSubstitutor. I haven't tried it, but it should be something like this example:
final Map<String, V> valueMap = ...; StrSubstitutor subst = new StrSubstitutor(valuesMap, "$", ""); // NONE_MATCHER for suffix initially subst.setVariableSuffixMatcher(StrMatcher.trimMatcher()); HTH, Woonsan On Tue, Nov 17, 2015 at 2:20 PM, Jörg Schaible <joerg.schai...@gmx.de> wrote: > Alex Soto wrote: > >> Hi, thank you for your answers, Jörg I think that StrMatcher is for >> implementing where you want to get information to be replaced on the >> string, not for parsing issues. > > Instead of guessing, I'd rather have a look into the Javadocs of > StrSubstitutor. > > Cheers, > Jörg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@commons.apache.org > For additional commands, e-mail: user-h...@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org