I have database where one column contains numbers. 3 example values:
1111111555 2222222555 3333333555
which I need to reverse and put a dot between each digit. i.e. the result for each of the examples above would be:
5.5.5.1.1.1.1.1.1.1 5.5.5.2.2.2.2.2.2.2 5.5.5.3.3.3.3.3.3.3
respectively.
I then need to update another column with the result. How can I make such replacement?
An online regexp test is giving me the result I need with this:
(\S)(\S)(\S)(\S)(\S)(\S)(\S)(\S)(\S)(\S)/g$10.$9.$8.$7.$6.$5.$4.$3.$2.$1
but I can't get it to successfully update the database. Any ideas how make it work?