How to add thousand separator using regex?
Posted: 07 Jun 2019 05:50
anyone can help me, how to add a thousand separator with comma?
from 1234567 to 1,234,567
from 1234567 to 1,234,567
Code: Select all
num = 1234567;
show = "{num,numberformat,#,###}";
working perfectly, terima kasihDesmanto wrote: ↑07 Jun 2019 15:47You don't need regex, a simple numberformat is enough.For more about numberformat pattern, visit the documentation : https://automagic4android.com/automagic ... terns.htmlCode: Select all
num = 1234567; show = "{num,numberformat,#,###}";
Or you can find the numberformat help in the script help menu.