【发布时间】:2015-10-12 14:43:12
【问题描述】:
我有下面的输入字符串示例:
test1=123#test2=456#test3=789
我想分割这个字符串,使用“#”(井号)作为分割符。为此,我可以使用示例:
tib:tokenize("test1=123#test2=456#test3=789","#")
我会得到我想要的:
test1=123
test2=456
test3=789
问题是,当我想拆分字符串时,使用的不是字符/符号(如以前的“#”),而是字符串(“#splitter#”)。输入字符串示例:
test1=123#splitter#test2=456#splitter#test3=789
我不能使用分词器,因为它只允许提供一个符号字符。
我怎样才能做到这一点?
谢谢
【问题讨论】:
标签: xml split substring tokenize tibco