D
Dan
Hello all,
I have a string with this format:
en_20080722_al_jazirah_018124500030, how can I split it into:
en,
20080722,
al_jazirah,
018124500030,
I can not use the "_" as the delimiter, since in the third part, there
is a "_" inside.
For the first part, always two letters.
For the second part, always 8 digits.
Length of third and fourth part are variable.
Should I use regular expression?
In perl, it can be done with string match (\w{2})_(\d{8})_(\w+)_(\d+),
can I do this in Java also? Thanks a lot.
I have a string with this format:
en_20080722_al_jazirah_018124500030, how can I split it into:
en,
20080722,
al_jazirah,
018124500030,
I can not use the "_" as the delimiter, since in the third part, there
is a "_" inside.
For the first part, always two letters.
For the second part, always 8 digits.
Length of third and fourth part are variable.
Should I use regular expression?
In perl, it can be done with string match (\w{2})_(\d{8})_(\w+)_(\d+),
can I do this in Java also? Thanks a lot.