Hi,
As seen below, I am trying to figure out how split my sample
string so that the "012" is not placed into the string array. After reading the Javadocs, I know that ^0-9 and \D are equivalent, and my output confirms this, but I thought those would return anything NOT a digit. So I tried the regex [a-z][A-Z] on splitChar which I thought would return only letters, but as you see below, that succeeded in returning the whole sample string, digits and all.
This leads me to believe either I have a fundamental misunderstanding of how this whole regex thing works, or I am missing something easy in my code.
And here are my results from the above code:
Length is: 5
012
This
is
the
string
Length is: 1
012
Length is: 1
012
Length is: 1
012 This is the string
Thank you for your help. :-)
BD