Jump to content

Rosetta Code/Rank languages by popularity: Difference between revisions

fixed second DownloadString
(fixed second DownloadString)
Line 4,007:
$languages = [regex]::matches($response,'title="Category:(.*?)">') | foreach {$_.Groups[1].Value}
 
$response = [Net.WebClient]::new().DownloadString("http://rosettacode.org/mww/index.php?title=Special:Categories&limit=5000")
$response = [regex]::Replace($response,'(\d+),(\d+)','$1$2')
 
Line 4,039:
Rank: 10 (960 entries) Zkl
</pre>
 
===PowerShell: Using MediaWiki API method===
{{trans|Python}}
678

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.