Weird one but:
Let's say you've a huge html page and if the page contains an email address (looking for an @ sign) you want to return that email.
So far I know I need something like this:
String email;
if (myString.contains("@")) {
email = myString.substring("@")
}
I know how to get to the @ but how do I go back in the string to find what's before it etc?