adil zahir wrote:
Look at your string, and find everywhere there is a "dot followed by one character", and it should be clear what is going on.
that mean
"4.x45.a.3"
i will have 4 and x45 and a . the out put will be : 4 x45 a
that what i understand ??!!!
No. As fred stated, the delimiter is a literal dot followed by a character.
So, the delimiters are ... ".x", ".a", and ".3". This means that there are four parts ... "4", "45", "". and "". And since the default split() method truncates trailing blanks, you wind up with only the "4", and "45".
Henry