I have to output the first 3 phone number in 3 different column in excel format. So if there are 5 phone number, I just have to take first 3. The phone number separator in my database is using comma (,)
The phone number output must be 62, not +62 or 0 or without 62. Every phone number MUST have 62 in the front of it.
I tried to use StartsWith and Remove but somehow it’s not working. Any idea for this case? Thanks
Considering the conditions mentioned, from the String data provided, How would you Output it to excel and which would be the 3 values that you would choose if done manually ?
Let str be the string variable which contains the data, then we can perform a split based on comma and convert it to an array of String. We can then perform a modification on the values as per the conditions and then select the modified values as the new set of values.