Sign in to follow this  

Boost regex groups

This topic is 4733 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

This topic is 4733 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this