Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tok unicode delim
#1
Hi,

the tok function,  It seems does not support unicode delimiters(e.g: ┃). Is there any other solution?



Macro M1
Code:
Copy      Help
out
_s=
;aaa|bbb|ccc

ARRAY(str) a
tok _s a -1 "|"
out a ;;OK

Macro M2
Code:
Copy      Help
out
_s=
;aaa┃bbb┃ccc

ARRAY(str) a2
tok _s a2 -1 "┃"
out a2 ;;NO
#2
I can call the following powershell code, but many files are too slow to process
 
Code:
Copy      Help
'aaa┃bbb┃ccc'.Split("┃")
#3
It's so simple to solve!  Big Grin

Code:
Copy      Help
_s.findreplace("┃" "[]")


Forum Jump:


Users browsing this thread: 1 Guest(s)