Take last number from string

Hi,
Suppose i have a string like this:-

1 Set-Up Charge Set-Up Charge 44.0000 44.00
1 *Prepro Proof Charge Prepro Proof per Color 24.0000 24.00
892.18

and i want to remove last number i.e 892.18 then how i do.

Hi,

You can use replace activity to remove the string
Else
You can use regex method to remove that string.

Regards,
Arivu

Hi,
for my expected output replace activity is not work can you suggest regex pattern to me.

Hi,
Suppose i have a string like this:-

1 Set-Up Charge Set-Up Charge 44.0000 44.00
1 *Prepro Proof Charge Prepro Proof per Color 24.0000 24.00
892.18

and i want to remove last number i.e 892.18 then how i do.

Hi @Rup_1,

Use this regex pattern to remove the last number from your input string

Pattern : (\d|,)*\.?\d*$

Regards,
Arivu

Hi Arivu,
the pattern which you provide is for fetch last number i.e (82.18) from string but i want to remove last number from my string and i want to result like this:-

1 Set-Up Charge Set-Up Charge 44.0000 44.00
1 *Prepro Proof Charge Prepro Proof per Color 24.0000 24.00

regards,

Hi arivu,
Thanks,it works fine previously i made some minor mistake.