Escaping comma seperated values?
Moderator: Martin
Escaping comma seperated values?
The docs for Input Lists state "A comma seperated list of values..." but does not say how one would escape a comma in such a value. I tried \, but the backslash was just printed on the screen.
Unofficial AutoMagic Telegram Group: https://t.me/automagicforandroid
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Re: Escaping comma seperated values?
Put quotes around it like:
one,two,"three,",four
one,two,"three,",four
Re: Escaping comma seperated values?
Thanks, would be nice if this was stated in the docs ^^
Unofficial AutoMagic Telegram Group: https://t.me/automagicforandroid
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Re: Escaping comma seperated values?
I usually just put the element into a list first, the use listformat comma. The element inside will always be escaped properly.
just use {a,listformat,comma} in the input dialog list or any input field that require comma delimited element.
Code: Select all
a = newList("hello", ",world", "good");
b = "{a,listformat,comma}";
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.