i have the following regex
[0-9]+[a-zA-Z]+[ ]([a-zA-Z]+[ ]+){0,10}+[0-9]+
// code to match where get(i) = the string . it doesnt need to match the whole thing just (59Hello Axis Only 5454XXX6334 1233333 ) and (59World 58123612344501)
if (list.get(i).matches("[0-9]+[a-zA-Z]+[ ]([a-zA-Z]+[ ]+){0,10}+[0-9]+")) {
System.out.println(list.get(i));
}
To match the following
59Hello Axis Only 5454XXX6334 1233333 0.00%R596.11 R12,180.12 R210.880.00%321 58R0.00 R0.00
59World 58123612344501 0.00%R389.06 R9,337.52 R161.840.00%242 58R0.00 R0.00
It should match both of these lines. ANy help and improving the regex would help