I'm trying to parse a string and capture chunks of data for every 4 dots like so:
I've tried splitting the string on the dot, pushing it onto an array, counting the dots until I reach 4, reassembling the chunk and then pushing it onto another array. This seems like it should be much easier, any suggestions?data = 12d.9j7h.7tttt.125.ty.2.4.8.9f.y6.34gk.ll after parse = 12d.9j7h.7tttt.125 ty.2.4.8 9f.y6.34gk.ll
Thanks
In reply to regex needed for dot delimited string by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |