Check out example codes for "replace everything before a character in java". It will help you in understanding the concepts better.

Code Example 1

String s = "the text=text";
String s1 = s.substring(s.indexOf("=")+1);
s1.trim();

Code Example 2

result = result.split("\n")[0];

Learn ReactJs, React Native from akashmittal.com