commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <>
Subject Re: Commons Lang substitution
Date Mon, 16 Nov 2015 20:37:42 GMT
Benedikt Ritter wrote:

> Hello,
> 2015-11-14 22:25 GMT+01:00 Anthony Brice <>:
>> I could be wrong, but I do believe StrSubstitor requires a prefix and
>> suffix. I don't think the class will replace variables that aren't in the
>> map either, unless you write a custom StrLookup that returns an empty
>> string for variables not previously defined.
> Yes, this is correct. The replace with blank could be implemented using a
> custom StrLookup. However, it is not possible to configure a
> StrSubstitutor to use only a starting character.

End "character" could be any non-alphanum character. Isn't it what the 
StrMatcher could be used for?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message