-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I wondered how to escape the circumflex char ^
My input is SETD^i.11.mix^0.1015118791 and i want to capture 11 and 0.1015118791
when i replace the circumflex with \094 the callback seems to run endlessly
@nickgammon Do you have an idea how to write the regex?
char buf [100] = "SETD^i.11.mix^0.1015118791";
MatchState ms (buf);
count = ms.GlobalMatch ("^i.(%d+).mix^([%d.]+)", match_callback); // no match
count = ms.GlobalMatch ("^i.(%d+).mix", match_callback); // no match
count = ms.GlobalMatch ("\^i.(%d+).mix", match_callback); // no match
count = ms.GlobalMatch ("\\^i.(%d+).mix", match_callback); // no match
count = ms.GlobalMatch ("\094i.(%d+).mix", match_callback); // endless loop in callbackReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels