Split String to Array Using a Blank Delimiter

SanatKeys

New member
Hello,

I'm trying to split a price (ex. 56.32) into an array where each character is a separate element (ex. 5, 6, ., 3, 2). I've been using the Split to Array action, and in the past I've gotten away with using an empty set of parentheses () as the delimiter, but now that doesn't seem to work anymore. Has anyone needed to use "nothing" as a delimiter before? The frustrating part is, if I don't put anything as the delimiter, then test the action, it works perfectly. But then I can't click Confirm on the action unless I put something in (I can't just leave it blank). Is there any way to get around this? Thanks!
 

FrameXX

Well-known member
The option still does seems to work if I click "TEST", but I am not alloweed to click OK button and confirm the configuration.
 

420

Active member
I had been using \n followed or preceded (i don't remember) by a blank space, to split some text into an array, it had been working flawlessly but for some mysterious reason that also stopped working a couple of days ago. I had to completely re-configure my macro and worked around it, hopefully you will be able to do the same without to much trouble..
 

Dimlos

Well-known member
I added delimiters with a shell script.
How about something like this?
 

Attachments

  • split_price.macro
    2.5 KB · Views: 12
Top