Hi, I'm not a java programmer, but I need some help.
could anyone write a method take looks like this:
public String getMatchedString(String text, String start, String end)
the method should recive a string with a text, and the other parameters (start and end) are two string that it must find in the text, when he finds a String that starts with "start" and ends with "end" it should return a string with what is between them.
exemple:
getMatchedString("Name: John Rambo - Age: 21", "Name:" , "- Age: 21")
should return "John Rambo"
got it?
thanks for just reading


Reply With Quote
Bookmarks