For example:
str = "(a+b)*(c+d)*(e+f)"
str.indexOf("(") = 0
str.lastIndexOf("(") = 12
How to get the index in second bracket? (c+d) <- this
int first = str.indexOf("(");
int next = str.indexOf("(", first+1);
have a look at API Documentation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With