Hi,
I tried several way to code and i still have some incompatibilities like this one :
(VBscript)
Code: Select all
' json = {"id":123264,"username":"cobalt","user_id":1,"quote":"Azerazerzaerzaera","url_avatar":"","posted_at":1330018915,"votes":0,"time":1330018915,"type":0,"posted_via":0,"moderation":1,"favori":0},
debug = ""
Dim regex As String = "quote"":"""
Dim tableau() As String = json.Split(regex)
For i As Integer = 0 To tableau.Length - 1
debug = debug & tableau(i) & "__"
Next
my regex variable would be interpret as a Char ("q") and not as a string ("quote...")
The tooltip when i type a Split( indicates 6 ways to use sur function (3 with Char delimiter, 3 with String Delimiter) but no way to use the String delimiter
String Splitter node use only Char delimiter
I discover several way to code on MSDN
http://msdn.microsoft.com/fr-fr/library ... split.aspx
http://msdn.microsoft.com/en-us/library/tabh47cf.aspx
Code: Select all
Dim phrase As String = "The quick brown fox"
Dim words() As String
words = phrase.Split(TryCast(Nothing, String()),
StringSplitOptions.RemoveEmptyEntries)
words = phrase.Split(New String() {},
StringSplitOptions.RemoveEmptyEntries)
With 2 ways to do it, and different arguments
which one should i use ?
Thanks for your help,