Thank you, using toString() works perfectly.
On 2023/09/27 12:28:24 Paul King wrote:
> For a GString, the strings property contains the static parts and the
> values property contains the expressions.
>
> def name = 'world'
> def gstr = "Hello, $name!"
> assert gstr.strings[0] == 'Hello, '
>
For a GString, the strings property contains the static parts and the
values property contains the expressions.
def name = 'world'
def gstr = "Hello, $name!"
assert gstr.strings[0] == 'Hello, '
assert gstr.strings[1] == '!'
assert gstr.values[0] == 'world'
assert gstr.toString() == 'Hello,
Hi, Paul,
could you, please, explain what you mean? I really have no idea, what you mean.
Thanks,
Jochen
On 2023/09/25 15:07:28 Paul King wrote:
> You'd need to interleave the values from the GString.
>
> On Tue, Sep 26, 2023 at 12:43 AM Jochen Wiedmann
> wrote:
> >
> > Hi,
> >
> > can