String test = "{helloworld=Text to be filtered}";
I need to get "Text to be filtered" from the above string. Please help. Thanks in advance.
String test = "{helloworld=Text to be filtered}";
I need to get "Text to be filtered" from the above string. Please help. Thanks in advance.
you can make use of String.split() method in this case.
String test = "{helloworld=Text to be filtered}";
String testAfterSplit[] = test.split("=");
testAfterSplit[0]
will be holding the value "{helloworld" and
testAfterSplit[1]
will be holding the value "Text to be filtered}"
you can read more about split here
You can use indexOf method. It retruns the position of character you want. In this case:
int pos = text.IndexOf("=");
String filter = text.substring(pos, text.length());
It returns an string from position of = to the end.