Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Extracting links challenge
Extracting links challenge [message #44151] Fri, 09 January 2015 11:05 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I have stumbled on this:

http://codegolf.stackexchange.com/questions/44278/debunking- stroustrups-debunking-of-the-myth-c-is-for-large-complicated -pro

so naturally, here is the U++ version:

#include <Core/Core.h>
#include <plugin/pcre/Pcre.h>

using namespace Upp;

CONSOLE_APP_MAIN
{
	String s = ToCharset(CHARSET_UTF8, HttpRequest("http://www.stroustrup.com/C++.html").Execute(),
	                     CHARSET_ISO8859_1);
	RegExp x("href *= *\"(.*?)\"");
	while(x.GlobalMatch(s))
		Cout() << x.GetStrings()[0] << "\n";
}



 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Raspberry Pi
Next Topic: How would you design a good copy/move semantics system?
Goto Forum:
  


Current Time: Fri Mar 29 07:07:59 CET 2024

Total time taken to generate the page: 0.02053 seconds