Add comma delimiters to string?

(imported topic written by kebulm91)

I asked this question in another thread (http://forum.bigfix.com/viewtopic.php?id=2361) but thought I’d post a new topic asking specifically about the string manipulation…

Any idea how to convert this:

646174613100646174613200646174613300

into this:

64,61,74,61,31,00,64,61,74,61,32,00,64,61,74,61,33,00

using relevance?

Need to add a comma ever 2 characters… Thoughts?

Ken

(imported comment written by jessewk)

Q: concatenation “,” of (if length of it >= 2 then firsts 2 of it else it) of (it & following text of it) of characters whose (start of it mod 2 = 0) of “646174613100646174613200646174613300”

A: 64,61,74,61,31,00,64,61,74,61,32,00,64,61,74,61,33,00