Skip to content

Find number in string and convert Dot Thousand Separator + Comma Decimal Separator to Comma Thousand Separator + - Use case: Vietnamese

License

Notifications You must be signed in to change notification settings

vantanco/Convert-Dot-Thousand-Separator-to-Comma-Thousand-Separator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Convert-Comma-Dot-Thousan-Separator-to-Comma-Thousand-Separator

Find number in string and convert Comma Dot Thousanđ Separator to Comma Thousand Separator - Use case: Vietnamese

Data test

text = """
I have 1.234,56
12.345,67 Going
Something 123.456,78
10,45
0
10.45
1,234.56
12,345.67
123,456.78
1
12
123
1,234
12,345
123,456
1,234,567
12,345,678
500
"""

Result

Founded numbers: ['1.234,56', '12.345,67', '123.456,78', '10,45', '0', '10.45', '1,234.56', '12,345.67', '123,456.78', '1', '12', '123', '1,234', '12,345', '123,456', '1,234,567', '12,345,678', '500']
Converted numbers: ['1,234.56', '12,345.67', '123,456.78', '10.45', '0', '10.45', '1,234.56', '12,345.67', '123,456.78', '1', '12', '123', '1,234', '12,345', '123,456', '1,234.567', '12,345.678', '500']

About

Find number in string and convert Dot Thousand Separator + Comma Decimal Separator to Comma Thousand Separator + - Use case: Vietnamese

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages