Regex get multiple segments of a string in javascript

Posted by dave on Stack Overflow See other posts from Stack Overflow or by dave
Published on 2013-10-24T15:32:48Z Indexed on 2013/10/24 15:53 UTC
Read the original article Hit count: 148

Filed under:
|

I'm trying to extract some results from a download manager, the format is:

[#8760e4 4.3MiB/40MiB(10%) CN:2 DL:4.9MiB ETA:7s]

what I'd like to extract from the above example, would be an array that looks like this:

['4.3','MiB','40','MiB','10%','4.9','MiB','7','s']

I've tried to split this in various combinations, but nothing seems to be right. Would anyone happen to know how to do this or be able to offer suggestions?

Thank you!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about regex