I have a file with chinese content that I need to parse. Each post has some weird delimitter between fields and I am trying to isolate the fields but cannot recognize the delimitter.
Dim stringSplitter() as string = {" "}
Try
sampleResults = entry.Split(stringSplitter,StringSplitOptions.RemoveEmptyEntries)
.....
A sample of the post content;
108087006686338t.qq.com/GAOCHUANG8899homeGAOCHUANG8899homehttp://t.qq.com/p/t/1080870066863382012-03-22 04:49:46
The separator starts after the first set of digits 108087006686338 DELIMITTER t.qq.com/GAOCHUANG8899home . I initially thought I could split it using json but this is definitely not json format.
Sorry when I post the original the delimitters disappear when making this post. The delimitter looks like a rectangular block
EDIT:
Ok using the hex editor I identified the character hex value as 01 and it looks like a period but the period has a value of 2E. Does this mean anything to anyone?
EDIT:
Reproducing the question: can I split a string based on a hex value. If the value is “01” then how would I split the string based on that value.
EDIT:
final answer:`
Dim hvalue as Char = Char(1)
Dim stringSplitter() as string = {hvalue}
Let’s say you have input
$inputand delimitter with ascii code of01.Perl:
The code above will split your
$inputinto@outputarray, so then you can access items viaVisual-Studio-2010: