Would be easier done using .NET, are you using it?
I'm trying to create a program that will collect users names or emails.
Example:
I put a link of a thread, steam group.
Then i press start
it will collect user names or emails.
How can i do this?
Would be easier done using .NET, are you using it?
Light travels faster than sound. That's why most people seem bright until you hear them speak.
regex for email: \b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b
Ah we-a blaze the fyah, make it bun dem!
giniyat101 (10-25-2012),Hell_Demon (10-25-2012)
Emails would be easier unless there's a certain structure in the site. A pretty simple regex should work well enough for that kind of task, as suggested earlier.
1. Download the source code of the site, or open it in a rendering engine (like Webkit).
2. Find the emails in the source using the regex, using a regex engine. I think at least Boost includes one, and I've used Qt's engine before so it definitely has one. I'm sure there are others, too.
As of C++11, regular expressions are supported in the standard library and can be found in the header <regex>.