commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Woonsan Ko <>
Subject [lang] StrSubstitutor - a dollar sign before a variable
Date Wed, 22 Jul 2015 21:50:05 GMT
Hi there,

I tried to use the following, expecting "...ick brown fox paid $20.00
to jump over the la…":

    // In locally
    // after cloning
    public void testReplaceEscapingDollarSign() {
        values.put("amount", "20.00");
        doTestReplace("The quick brown fox paid $20.00 to jump over
the lazy dog.",
                      "The ${animal} paid $$${amount} to jump over the
${target}.", true);

(I put double dollar signs like $$${amount} because $ is the default
escape character.)

But, the result was:"...ick brown fox paid $${amount} to jump over the la…".

Is it a bug or did I miss something?



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

View raw message