Skip to content
Advertisement

Javascript Split String in Array to Objects in Array

I have this Array ["2.900000F02A_1313_01","2.600000F02A_1315_03","2.900000F02A_1354_01"]

And I want to split it like this:

JavaScript

This is my Code that doesn’t work:

JavaScript

Does somebody know how I can do this?

Advertisement

Answer

You could split with a group.

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement