X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5ef298b3c7e9be8be6b356b7e15b66c928f00a2c..60b73526d6797ee466c272dbfca962a230bc5908:/docs/latex/wx/regex.tex diff --git a/docs/latex/wx/regex.tex b/docs/latex/wx/regex.tex index 4cd2c29401..175fcd0aa4 100644 --- a/docs/latex/wx/regex.tex +++ b/docs/latex/wx/regex.tex @@ -80,7 +80,7 @@ enum Flags for regex matching to be used with \helpref{Matches()}{wxregexmatches}. These flags are mainly useful when doing several matches in a long string -to prevent erroneous matches for \verb|'^'| and {\tt '\$'}: +to prevent erroneous matches for {\tt '^'} and {\tt '\$'}: \begin{verbatim} enum @@ -126,8 +126,6 @@ printf("text now contains %u hidden addresses", count); Default ctor: use \helpref{Compile()}{wxregexcompile} later. -\membersection{wxRegEx::wxRegEx}\label{wxregexwxregex} - \func{}{wxRegEx}{\param{const wxString\& }{expr}, \param{int }{flags = wxRE\_DEFAULT}} Create and compile the regular expression, use @@ -195,9 +193,9 @@ Replaces the current regular expression in the string pointed to by {\it text}, with the text in {\it replacement} and return number of matches replaced (maybe $0$ if none found) or $-1$ on error. -The replacement text may contain back references {\tt \\number} which will be +The replacement text may contain back references {\tt $\backslash$number} which will be replaced with the value of the corresponding subexpression in the -pattern match. {\tt \\0} corresponds to the entire match and {\tt \&} is a +pattern match. {\tt $\backslash$0} corresponds to the entire match and {\tt \&} is a synonym for it. Backslash may be used to quote itself or {\tt \&} character. {\it maxMatches} may be used to limit the number of replacements made, setting