I put 10-digit mobile numbers in Textarea, as in the following. 242452354643663463636346366363463636365636363634656346 but I need to put a comma (,) after every ten-digit number.
Like this?
"242452354643663463636346366363463636365636363634656346".replace(/(\d{10})/g,"$1,") // 2424523546,4366346363,6346366363,4636363656,3636363465,6346
Source: https://habr.com/ru/post/1748278/More articles:SQL Server instead of MYSQL in WAMP - phpCommunication between PHP and SQL server using new WAMP approaches - sqlHow to add a bubble counter on tabs in an android app? - androidLoop loop problem for Iqueyable - c #GAE: ValueError: unsafe ink brine - pythonUnderstanding the Definition of MAKEINTRESOURCEW - windows.NET Reflection Helper API? - reflectionBuilt-in scripting engine in .NET application - c #How to count the number of bytes read by TextReader.ReadLine ()? - c #MySQL: INNER JOIN - sqlAll Articles