diferenciar entre texto sin formato y enlace de sitio web y enlace de youtube

I have NSString variable contain plain text ,youtube link ,image link and link for anther website . So my problem here is how to extract each one and save in different variables .

like this OutPut :

2012-07-04 02:45:23.158 mywordpressblog[67403:f803] لتحميل ملفات البرنامج :



preguntado el 04 de julio de 12 a las 00:07

Can you post the string? What code have you tried so far? -

I have no idea about objective c , but I know how to use it in java -

ok, in anther words , how can search in string about special words ? -

You need to pull the substrings out of the NSString yourself. Check this post out for reference stackoverflow.com/questions/3613591/… and look at the Class reference under "Dividing Strings" (desarrollador.apple.com/library/mac/#documentation/Cocoa/Reference/…) -

0 Respuestas

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.