Jump to content

Recommended Posts

Posted

example lo spl characters levu, but ikkada paste chesaka vachhayi 

"http://blog.illumen.org/ways/?p=89917                crawl-frequently              unchanged         0              0              0              1                0              0              2014/07/31 06:32              text/html            6614       91d875d71a9942               182         5"

Posted

strt your search with http and go till the special characters

Posted

+_(  more simpler 

scrooge bhayya inka konchem detail ga cheppava

 

nenu C# lo cheddam anukuntunna

Posted

scrooge bhayya inka konchem detail ga cheppava

 

nenu C# lo cheddam anukuntunna

idi nenu rasindi python lo ... mostly regex is same irrespective of language.. 

 

= re.findall("((http:|https:)//[^ \<]*[^ \<\.])",line)

 

m is temp variable 

re is regex module 

dot is operator

findall is attribute/class/function/sub-routine in the 're' module

"" quotes madhyalo logic

line is the string u pass & wants to try to find regex match logic in quotes against the line

 

quotes ""  lo unnadi logic ardam ayinda kaleda ? 

Posted

m = re.findall("((http:|https:)//[^ \<]*[^ \<\.])",line)

URL laa special char skip chestadii edi.. if its just plain url then work or else blast anukunta...

Posted

idi nenu rasindi python lo ... mostly regex is same irrespective of language.. 

 

= re.findall("((http:|https:)//[^ \<]*[^ \<\.])",line)

 

m is temp variable 

re is regex module 

dot is operator

findall is attribute/class/function/sub-routine in the 're' module

"" quotes madhyalo logic

line is the string u pass & wants to try to find regex match logic in quotes against the line

 

quotes ""  lo unnadi logic ardam ayinda kaleda ? 

python vacha uncle neeku...intha talnet ekkadadhi neeku

Posted

idi nenu rasindi python lo ... mostly regex is same irrespective of language.. 

 

= re.findall("((http:|https:)//[^ \<]*[^ \<\.])",line)

 

m is temp variable 

re is regex module 

dot is operator

findall is attribute/class/function/sub-routine in the 're' module

"" quotes madhyalo logic

line is the string u pass & wants to try to find regex match logic in quotes against the line

 

quotes ""  lo unnadi logic ardam ayinda kaleda ? 

Python lo Regex.Findall vundi

C# lo ledu. mari ikkada yemi use cheyyali ?

Posted

python vacha uncle neeku...intha talnet ekkadadhi neeku

 

he worked ahrd man..

Posted

URL laa special char skip chestadii edi.. if its just plain url then work or else blast anukunta...

explain 

Posted

Python lo Regex.Findall vundi

C# lo ledu. mari ikkada yemi use cheyyali ?

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

×
×
  • Create New...