Jump to content

Recommended Posts

Posted

he worked ahrd man..

r u srs..efudu ikade thagaldthadu 2dqps0j.gif

Posted

r u srs..efudu ikade thagaldthadu 2dqps0j.gif

 

adi manam.. 

Posted

to understand regex... read this http://www.regular-expressions.info/refquick.html

 

C# lo You don't need a regex for URLs, use System.Uri class for this. E.g. by using Uri.IsWellFormedUriString method for this:

bool isUri = Uri.IsWellFormedUriString(url, UriKind.RelativeOrAbsolute);

 

source : http://stackoverflow.com/questions/5717312/regular-expression-for-url

yemo bhayya ee regex yeppudu ardam avvadu 

1zzgs3b_th.jpg

Posted

yemo bhayya ee regex yeppudu ardam avvadu 

1zzgs3b_th.jpg

sadava kunda ardam kadu antey etta man 

first saduvu 

Posted

 

bujja endhi ee formatting?   asalu emi artham avvatle nee string .. find a url in string regex ani kodithe kuppalu vasthayi man.   

 

simple ga ee regex  enough    http:\/\/[\s\S]+?(?=\s)

Posted

explain 

 if the URL contains special char like" _-+=!@ # $ % ^ & * " it will not validate ani saying mama...

 

@ts C# lo edi... nee regualr expression nee iekadaa validate chesukoo http://www.regexr.com/ you can build and test also

 

 

(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?

Posted

 if the URL contains special char like" _-+=!@ # $ % ^ & * " it will not validate ani saying mama...

 

@ts C# lo edi... nee regualr expression nee iekadaa validate chesukoo http://www.regexr.com/ you can build and test also

 

 

(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?

\ pettanu kada to consider special as a literal 

Posted

\ pettanu kada to consider special as a literal 

my bad .... you rock I say...

Posted

bujja endhi ee formatting?   asalu emi artham avvatle nee string .. find a url in string regex ani kodithe kuppalu vasthayi man.   

 

simple ga ee regex  enough    http:\/\/[\s\S]+?(?=\s)

blessme.gif

ayya meeru devudu ayya. Google cheyyadam nerpinchav 

 

final ga code ila raasanu and adi work ayyindi 

 

            String replacedata = File.ReadAllText(@"C:\Users\Desktop1\Desktop\Replace\Replace.txt");
 
            
            foreach (Match m in linkParser.Matches(replacedata))
                Console.WriteLine(m.Value);
                        
            Console.ReadLine();
Posted

sadava kunda ardam kadu antey etta man 

first saduvu 

help ki chala thanks bhayya

but ippatiki ippudu chadivi adi ardam chesukoni implement cheyyadam kanna meelanti intelligent fellows ni adagadam easy ani 

intfella.gif

Posted

 

blessme.gif

ayya meeru devudu ayya. Google cheyyadam nerpinchav 

 

final ga code ila raasanu and adi work ayyindi 

 

            String replacedata = File.ReadAllText(@"C:\Users\Desktop1\Desktop\Replace\Replace.txt");
 
 
            
            foreach (Match m in linkParser.Matches(replacedata))
                Console.WriteLine(m.Value);
                        
            Console.ReadLine();

 

 

nuvvu vaadina regex endhi final ga 

Posted

nuvvu vaadina regex endhi final ga 

asalu ainadi paste cheyyadam marachitini 

Posted

help ki chala thanks bhayya

but ippatiki ippudu chadivi adi ardam chesukoni implement cheyyadam kanna meelanti intelligent fellows ni adagadam easy ani 

intfella.gif

 

 

asalu ainadi paste cheyyadam marachitini 

final ga emi sesinavo adi seffu man .

×
×
  • Create New...