java - How to get a substring from a string -


i have xml file i'm reading string,

http://localhost:8080/sdpapi/request/10/notes/611/ 

my question how can 611, of variable, can 100000, example, string?

split string

string input = "http://localhost:8080/sdpapi/request/10/notes/611/";  string output = input.split("notes/")[1].split("/")[0]; 

output value need


Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

php - Calling a template part from a post -

How to mention the localhost in android -