Actually code
const char *first = "фывфыв@NameOfElement(pupa i lupa)вфывфыв"; const char *last = first + strlen(first); cmatch mr; regex rx("@NameOfElement\((.*?)\)"); regex_search(first, last, mr, rx); cout << mr.str(); The output looks like this: @NameOfElement
As far as I understand regular expressions (and I do it badly), the construction of the form
(.*?) this is the so-called capturing group, which in my regular calendar corresponds to the text inside the annotation brackets, can I somehow get it from the search results?
\,\(should be\\(and so on - VTT