Quote:
Originally Posted by muhakeme
I've been using wikipedia (thumbnails) problem.
1 - Englisch Domain : http://en.wikipedia.org/wiki/Austria ( It works perfectly )
2 - Tr Domain : http://tr.wikipedia.org/wiki/Avusturya ( It does not work )
---------------------------------------------------------------------------------
1 - Englisch Domain : http://en.wikipedia.org/wiki/Austria
HTML CODE:
Code:
<a href="/wiki/File:Flag_of_Austria.svg" class="image" title="Flag of Austria"><img alt="" src="http://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Flag_of_Austria.svg/125px-Flag_of_Austria.svg.png" width="125" height="83" class="thumbborder"></a>
embedding regexp:
Code:
/wiki/File:[\w\s.,&;\(\)\^%$#@!-]+\\\\"[\s]class=\\\\"image\\\\"[\s]*[\w\s.,&;\(\)\^%$#@!\\\\"=-]*><img[\s]alt=\\\\"[\w\s.,&;\(\)\^%$#@!-]*\\\\"[\s]src=\\\\"http://upload\.wikimedia\.org/wikipedia/([\w/.,&;\(\)\^%$#@!-]+)\\\\"
2- Turkish domain : http://tr.wikipedia.org/wiki/Avusturya
HTML CODE :
Code:
<a href="/w/index.php?title=Dosya:Kasgarlimahmut.jpg&filetimestamp=20100924162456" class="image"><img alt="Kasgarlimahmut.jpg" src="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6c/Kasgarlimahmut.jpg/200px-Kasgarlimahmut.jpg" width="200" height="248"></a>
embedding regexp not work  What should I do? Can you help me?
|
Right, it pretty much ONLY works with the English language domain. The problem is none of the foreign language domains use the same, or consistent, HTML code. I tried around a dozen different languages, and for some reason, only English had the consistent source code I need to make consistent matches.