I use boost regex. I have created the following regex witch matches numbers from range [10-31]:
[1-2][0-9]|3[0-1]
I want to use that regex with additional matching for example:
<tag-[[1-2][0-9]|3[0-1]]>
but it doesn't work. It works when I create group:
<tag-([1-2][0-9]|3[0-1])>
For string <tag-22>
I get two groups: <tag-22>, 22
Is it possible to create such regex without using groups ?