I wants to extract substring from NSString. How it is possible.
Example : String is abcdefwww.google.comabcdef
output : http://www.google.com
In the main String, It is not predefined which url comes, It may be google.com or yahoo.com etc.
So I have to find the Start location of w in www and the the last location of m in .com.
So my question is that how I can find the start location of w in www and the location of m in .com, so i extract this part
Edited due to issue :
How we can extract http://www.mywebsite.co.uk from this string asdfwww.mywebsite.co.ukasdfajsf
Thanks
substring from string like bellow
use this method like below…
for more information see bellow link..
help-needed-function-extract-string-string