September 07, 2021

find word between two strings using regular expression in java

https://github.com/javabelazy/ProgramingSkills/blob/bd3ad6517b7ae61803918da279b96712d2329b73/src/com/steffi/ideas/FindingSubstring.java



Pattern p = Pattern.compile("(ID):\\s*(\\w+)");
Matcher m = p.matcher(input);

No comments:

Post a Comment

Your feedback may help others !!!

Facebook comments