I want to retrieve the string between |2~ and |
What is the regex sequence to make this work?
Supposedly I have |2~21381030213jafjs231|adfafafasdfas And I am using
StringTokenizer test = new StringTokenizer(string, delim); I tried StringTokenizer(string, "//|/2/~%s/|") // doesn't work.
but it doesn't work.
Can you also elaborate how regex work (like how regex sequence works)? Or good link to start looking into.
Thank you