Jump to content
  • Advertisement
Sign in to follow this  
Kranar

Boost regex groups

This topic is 4949 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have looked as much as I could on the internet and boost documentation for sub-group matches and can't find anything on the matter. Basically say I have a simple expression like this: "(\\d{5,5})-(\\d{3,3})" And want to match it against the following string: "12345-678" In every implementation of regex I've seen, you could extract the actual number 12345, and 678 by extracting them as groups in a very simple and straight forward manner. Specifically this could be done in Java and Python. Was hoping there is also a simple way to do this in Boost.RegEx. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!