Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to Use Regular Expression

How to Use Regular Expression

Scheduled Pinned Locked Moved C / C++ / MFC
c++javaregexhelptutorial
7 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pavan_Putra
    wrote on last edited by
    #1

    Hi..I have an regular expression "^[a-zA-Z0-9_]([^@ ]*)@[a-zA-Z0-9]{2,}((\\.[a-zA-Z0-9]{2,}))*$" for Email Validation in java.I want same to do in VC++ , is there ant way to do it...? Plz help..!!!! thanks in Advance.

    It's not enough to be the best, when you have capability to be great....

    G _ J S 4 Replies Last reply
    0
    • P Pavan_Putra

      Hi..I have an regular expression "^[a-zA-Z0-9_]([^@ ]*)@[a-zA-Z0-9]{2,}((\\.[a-zA-Z0-9]{2,}))*$" for Email Validation in java.I want same to do in VC++ , is there ant way to do it...? Plz help..!!!! thanks in Advance.

      It's not enough to be the best, when you have capability to be great....

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      have a look at Boost Regex http://www.boost.org/doc/libs/1_39_0/libs/regex/doc/html/index.html[^] (there are other libraries out there to do the same) 'g'

      _ 1 Reply Last reply
      0
      • P Pavan_Putra

        Hi..I have an regular expression "^[a-zA-Z0-9_]([^@ ]*)@[a-zA-Z0-9]{2,}((\\.[a-zA-Z0-9]{2,}))*$" for Email Validation in java.I want same to do in VC++ , is there ant way to do it...? Plz help..!!!! thanks in Advance.

        It's not enough to be the best, when you have capability to be great....

        _ Offline
        _ Offline
        _Superman_
        wrote on last edited by
        #3

        Use the boost library. Look into Boost.Regex[^].

        «_Superman_» I love work. It gives me something to do between weekends.

        1 Reply Last reply
        0
        • P Pavan_Putra

          Hi..I have an regular expression "^[a-zA-Z0-9_]([^@ ]*)@[a-zA-Z0-9]{2,}((\\.[a-zA-Z0-9]{2,}))*$" for Email Validation in java.I want same to do in VC++ , is there ant way to do it...? Plz help..!!!! thanks in Advance.

          It's not enough to be the best, when you have capability to be great....

          J Offline
          J Offline
          Jijo Raj
          wrote on last edited by
          #4

          Hello Pavan, This link will be helpful - Use regular expression in your C++ program[^]. Regards, Jijo.

          _____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

          1 Reply Last reply
          0
          • G Garth J Lancaster

            have a look at Boost Regex http://www.boost.org/doc/libs/1_39_0/libs/regex/doc/html/index.html[^] (there are other libraries out there to do the same) 'g'

            _ Offline
            _ Offline
            _Superman_
            wrote on last edited by
            #5

            You just about beat me to it. :)

            «_Superman_» I love work. It gives me something to do between weekends.

            G 1 Reply Last reply
            0
            • _ _Superman_

              You just about beat me to it. :)

              «_Superman_» I love work. It gives me something to do between weekends.

              G Offline
              G Offline
              Garth J Lancaster
              wrote on last edited by
              #6

              yeah - funny isnt it - sometimes I see a post and no-one's answered it, an Im thinking someone's just about to push the 'Post' button .. and then sometimes, on a very rare occasion, its me 'g'

              1 Reply Last reply
              0
              • P Pavan_Putra

                Hi..I have an regular expression "^[a-zA-Z0-9_]([^@ ]*)@[a-zA-Z0-9]{2,}((\\.[a-zA-Z0-9]{2,}))*$" for Email Validation in java.I want same to do in VC++ , is there ant way to do it...? Plz help..!!!! thanks in Advance.

                It's not enough to be the best, when you have capability to be great....

                S Offline
                S Offline
                Stuart Dootson
                wrote on last edited by
                #7

                If you're using VS2008, you can install the feature pack[^] and get regular expressions in the standard libraries[^]. Otherwise, do what the other answers suggest and use Boost - either Boost.Regex[^] or (if you're feeling adventurous) Boost.Xpressive[^]

                Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups