My question is how can I get an email address if my UIWebView is loaded…
First I made a string about the View and I could find @ in my string with this:
NSString *myText = [mWebView stringByEvaluatingJavaScriptFromString:@"document.documentElement.textContent"];
if ([myText rangeOfString:@"@"].location == NSNotFound) {
NSLog(@"Couldn't find mail address!");
}
else {
NSLog(@"There is a valid mail address!");
}
But I don’t know how to get the content around this ( @) to a var.
try this.