Question
Virtusa
IN
Last activity: 6 Mar 2022 21:42 EST
Function to trim Alphabets and special char except one char or special char (.) which is given as a input to function
Hello guys,
I have a requirement to trim all the aphabets and special characters except one from a user entered input. So I request you to let me know any existing function like this or help me with the java code, please.
Sample input:
123.899INR
123INR
123%
123.00%
Sample output:
123.899
123
123
123.00
So, I am a expecting a function like, it should accept the property and excluding char as inputs
Eg: @trimNonNumExcept(".Value", ".")
***Edited by Moderator Marije to add Capability tags***