kristian_gr
asked on
Change String by pattern
Hi.
Have a preatty easy question. I need the simplest way to do this:
I have Strings like: 12399, 12500, 12204, 1208, 07
I need them to be like this: "123/ 99", "123/ 00", 122/ 04", "12/ 08", "/ 07"
Please note that the last two is valid.
The pattern is "xxxx/ yy" where yy is mandatory.
Any ideas?
Have a preatty easy question. I need the simplest way to do this:
I have Strings like: 12399, 12500, 12204, 1208, 07
I need them to be like this: "123/ 99", "123/ 00", 122/ 04", "12/ 08", "/ 07"
Please note that the last two is valid.
The pattern is "xxxx/ yy" where yy is mandatory.
Any ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:-)