I have a String,
String a = Roll No 5 To 40;
I want to get that 5 and 40 values into Different variables, Like String b = 5 , c= 40
This values can Change to anything,like 50 TO 100 OR 10 TO 90 and so on Any Ideas How can I achieve that?
String a = Roll No 5 To 40; To get 5, I converted a into String array, Iterated on it if matches("[0-9] then append in StringBuilder Will break if T comes In case of 40, With same String "[\d]+[\d] tried matching with this pattern
Thanks in Advance Akshay