Question
Publicis Sapient
IN
Last activity: 27 Oct 2022 6:20 EDT
How to extract the last few digits of any numeric String
Hi All,
I have a requeirement where I need to extract the last 4 or 6 digits of a numeric string.
For Example: I have property name and value as TicketNumber = 0005234567891234. The length of value will be any.
Here I want to extract the last 4 digits into a property, let say as Last4Digit = 1234 and also want to extract 6 digits, let say as Last6Digit =891234.
Please do let me know, how can I achieve it.
***Edited by Moderator Marije to add Capability tags***