from the string "MRN 09DE588004180289E0" i have to extract only the 18 digit number after MRN . this is actually present in a output.doc file . I am currently not able to extract that from the file even after using file writer .
when i run no output is coming and output should actually be 09DE588004180289E0 on the command prompt
could anyone please help me out
# int valStartIndex = line.indexOf(search) + search.length()+ 1;
#
# int valEndIndex = line.indexOf(search) + search.length()+ 1 + 13;
Pavithra,
You are short of length ? What does 13 signify ?
I guess here valStartIndex = 0+3+1 = 4 , valEndIndex = 4+14 = 18. But your String length ""MRN 09DE588004180289E0" is 22 ?