Jump to content

Tokenize a string with escaping: Difference between revisions

m
(Renamed "tokenzie" as "tokenize". Minor other changes.)
Line 968:
}
 
constlet testcase = "one^|uno||three^^^^|four^^^|^cuatro|";
for token in testcase.tokenize(separator =: '|', escape =: '^') {
print(": \(token)")
}</lang>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.