Benedikt Ritter wrote: > Hello, > > 2015-11-14 22:25 GMT+01:00 Anthony Brice <anthonybr...@lateachiever.com>: > >> 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? Cheers, Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org