Wikipedia:Reference desk/Archives/Computing/2016 December 25

= December 25 =

Regular expressions help
I have a piece of renaming software called "Name It Your Way". It's proven itself invaluable over the years, but I now need it to do something a little more complicated and I'm stuck. I have a large number of files with somewhat similar names, following a pattern something like x###_xxxx ### ##xxx-xx#####.jpg, though the lengths are variable. I would like to be able to identify a particular piece for removal. In English, what I want to tell it to do is "Find the only dash in the string, remove it and all the text to the left of that location until a space is found, then stop." I don't care if it removes the space it finds as well or not, but assuming it left it alone, in my example, it would remove the ##xxx- and leave me with a string of x###_xxxx ### xx#####.jpg. How would I construct that? Just to be clear, the program does the removal; I just need help with being able to identify the string accurately. I would normally use number of characters, but the filenames are all of different lengths. Thank you in advance and Merry Christmas to all! Matt Deres (talk) 15:17, 25 December 2016 (UTC)


 * If it supports Perl or POSIX regular expressions, you can probably do this by replacing " [^ ]*-" (including leading space, not including quotes) by a single space character (to preserve the space) or the empty string (to remove it). -- BenRG (talk) 18:29, 25 December 2016 (UTC)
 * Thank you for that; it seems to be doing what I need it to - much appreciated! Matt Deres (talk) 13:16, 27 December 2016 (UTC)

Downloading site
1) I'm looking for a downloading website from where I could download movies, cartoons, dramas games and so on. Any particular site you could recommend? 27.147.226.140 (talk) 19:41, 25 December 2016 (UTC)
 * The Pirate Bay 201.16.175.102 (talk) 19:51, 25 December 2016 (UTC)
 * Checked, its illegal in the country that I'm in... 27.147.226.140 (talk) 19:54, 25 December 2016 (UTC)
 * It's likely any site that offers downloads for "movies, cartoons, dramas games and so on" is going to be illegal since the copyright lobby is still heavily invested in physical media. Either suck it up or cough up your shekels for the legal versions. 201.16.175.102 (talk) 19:56, 25 December 2016 (UTC)


 * GOG.com has a pretty good selection of PC games and a limited selection of movies for download free of copy protection / DRM. A few are freebies but most of them you have to pay for. The Humble Store also has DRM-free games. You can download video from many free video-streaming web sites with youtube-dl or one of its many frontends, but the legal status of that may not be entirely settled. There are lots of free games on the Internet but I don't know whether there's a particular site that offers them all for download. MobyGames has a list of freeware/free-to-play/public-domain games with 2,121 entries at the moment. -- BenRG (talk) 20:28, 25 December 2016 (UTC)


 * Try the Internet Archive. —Nelson Ricardo (talk) 01:29, 26 December 2016 (UTC)

Alternative of
"Internet Download Manager", an opensource one that is easy to use. Does any one know anything good? 27.147.226.140 (talk) 19:53, 25 December 2016 (UTC)


 * We have the article Comparison of download managers. -- ToE 21:05, 25 December 2016 (UTC)
 * uGet works fine (on my Windows PC). &#40;&#40;&#40;The Quixotic Potato&#41;&#41;&#41; (talk) 08:26, 28 December 2016 (UTC)
 * uGet is not currently covered in our comparison, though is was mentioned in the talk page back in 2011. -- ToE 17:22, 29 December 2016 (UTC)