Click here to Skip to main content
16,010,553 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CMap template error Pin
Christian Graus4-Oct-02 12:20
protectorChristian Graus4-Oct-02 12:20 
GeneralRe: CMap template error Pin
IGx894-Oct-02 7:54
IGx894-Oct-02 7:54 
GeneralRe: CMap template error Pin
Christian Graus4-Oct-02 11:09
protectorChristian Graus4-Oct-02 11:09 
GeneralRe: CMap template error Pin
Chris Losinger3-Oct-02 17:58
professionalChris Losinger3-Oct-02 17:58 
GeneralRe: CMap template error Pin
IGx894-Oct-02 7:52
IGx894-Oct-02 7:52 
GeneralRe: CMap template error Pin
Tomasz Sowinski4-Oct-02 0:11
Tomasz Sowinski4-Oct-02 0:11 
Questionapi available for this purpose? Pin
imran_rafique3-Oct-02 15:36
imran_rafique3-Oct-02 15:36 
Generalregular expression problems Pin
Roman Nurik3-Oct-02 13:33
Roman Nurik3-Oct-02 13:33 
lets say i have a regular expression (im using boost::regex)
([a-z],)*

and i Match() with "a," i get the following sub-expressions:
0) a, (the whole expression is first in boost::regex)<br />
1) a, (that's inside parentheses)


if i Match() with "a,b,c," however, i get:
0) a,<br />
1) c, (the last occurence of the things in parentheses)


i NEED to get all of the occurences though, like this:
0) a,<br />
1) a,<br />
2) b,<br />
3) c,


the problem is that, this is not a bug:

from
http://www.boost.org/libs/regex/syntax.htm#syntax[^]:
For example the expression "(ab)*" would match all of the string "ababab". The matching algorithms regex_match and regex_search each take an instance of match_results that reports what caused the match, on exit from these functions the match_results contains information both on what the whole expression matched and on what each sub-expression matched. In the example above match_results[1] would contain a pair of iterators denoting the final "ab" of the matching string.


so, can someone help me figure out how to get ALL of the matching occurences of the sub-expression?

thanks in advance

- Roman -

GeneralRe: regular expression problems Pin
Jörgen Sigvardsson3-Oct-02 14:17
Jörgen Sigvardsson3-Oct-02 14:17 
GeneralRe: regular expression problems Pin
Jon Hulatt3-Oct-02 21:52
Jon Hulatt3-Oct-02 21:52 
General*.bmp *.wbmp conversion Pin
3-Oct-02 12:27
suss3-Oct-02 12:27 
GeneralRe: *.bmp *.wbmp conversion Pin
Jörgen Sigvardsson3-Oct-02 13:35
Jörgen Sigvardsson3-Oct-02 13:35 
GeneralRe: *.bmp *.wbmp conversion Pin
Anonymous3-Oct-02 13:59
Anonymous3-Oct-02 13:59 
GeneralRe: *.bmp *.wbmp conversion Pin
Chris Losinger3-Oct-02 18:00
professionalChris Losinger3-Oct-02 18:00 
QuestionThis 'works' but would you ever want to ?? Pin
RedZenBird3-Oct-02 12:21
RedZenBird3-Oct-02 12:21 
AnswerRe: This 'works' but would you ever want to ?? Pin
RedZenBird3-Oct-02 12:49
RedZenBird3-Oct-02 12:49 
AnswerRe: This 'works' but would you ever want to ?? Pin
Jörgen Sigvardsson3-Oct-02 13:47
Jörgen Sigvardsson3-Oct-02 13:47 
GeneralRe: This 'works' but would you ever want to ?? Pin
RedZenBird3-Oct-02 14:46
RedZenBird3-Oct-02 14:46 
GeneralRe: This 'works' but would you ever want to ?? Pin
Jörgen Sigvardsson3-Oct-02 15:06
Jörgen Sigvardsson3-Oct-02 15:06 
GeneralRe: This 'works' but would you ever want to ?? Pin
RedZenBird3-Oct-02 15:16
RedZenBird3-Oct-02 15:16 
GeneralCAsyncSoccket Pin
moloko3-Oct-02 11:59
moloko3-Oct-02 11:59 
GeneralRe: CAsyncSoccket Pin
Alexthombra3-Oct-02 19:21
Alexthombra3-Oct-02 19:21 
GeneralRe: CAsyncSoccket Pin
moloko4-Oct-02 14:25
moloko4-Oct-02 14:25 
GeneralUndocumented Windows APIs Pin
uniken3-Oct-02 11:59
uniken3-Oct-02 11:59 
GeneralRe: Undocumented Windows APIs Pin
Andreas Saurwein4-Oct-02 0:33
Andreas Saurwein4-Oct-02 0:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.