How to extract some text from a string in java -


i have string:

adding offert database.

 number of agreement: 98393553553
 number of accounting: 1242422222222222224242
 agreement in step: accounting

how extract text: 98393553553 (text has same number of characters - 11 characters) using java. text before: 98393553553 can different (sometimes).

try using string.split() delimiter :, , string.substring() on index 1 of string[] obtained earlier string.split().


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -