Results 1 to 6 of 6
  1. #1
    Rasta's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Russian Federation
    Posts
    1,373
    Reputation
    122
    Thanks
    1,189

    How can i do this?

    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?

  2. #2
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    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.

  3. #3
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    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!

  4. #4
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Quote Originally Posted by Hell_Demon View Post
    regex for email: \b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b
    your sig and your post...

    hmmmmm
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  5. The Following 2 Users Say Thank You to 'Bruno For This Useful Post:

    giniyat101 (10-25-2012),Hell_Demon (10-25-2012)

  6. #5
    CALauncher's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    27
    Reputation
    10
    Thanks
    5
    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.

  7. #6
    Fovea's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    325
    Reputation
    101
    Thanks
    411
    My Mood
    Amused
    As of C++11, regular expressions are supported in the standard library and can be found in the header <regex>.

Similar Threads

  1. Replies: 13
    Last Post: 10-18-2010, 09:11 AM
  2. How Can I Improve This Code ?
    By kelechi96 in forum Combat Arms EU Hack Coding/Source Code
    Replies: 8
    Last Post: 08-02-2010, 10:51 AM
  3. how can i cahange this
    By madbronks334 in forum Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    Replies: 5
    Last Post: 07-21-2010, 11:30 PM
  4. How can I do this?
    By Pwnzor122 in forum CrossFire Glitches
    Replies: 3
    Last Post: 02-21-2010, 09:25 PM
  5. how can i get this code!! ZackthOP7D3Dv2.dll
    By onyok0 in forum Soldier Front General
    Replies: 2
    Last Post: 12-23-2009, 07:37 AM