From 54d50c6e1bbe11f83fb782f77f5b5d1f6cabb6e6 Mon Sep 17 00:00:00 2001
From: Ryan Norton <wxprojects@comcast.net>
Date: Thu, 23 Sep 2004 23:38:05 +0000
Subject: [PATCH] wxT sample fix for regex docs - documentation buglet from
 wiki

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 docs/latex/wx/regex.tex | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/latex/wx/regex.tex b/docs/latex/wx/regex.tex
index 13d8506b20..c2ee1eab52 100644
--- a/docs/latex/wx/regex.tex
+++ b/docs/latex/wx/regex.tex
@@ -98,19 +98,19 @@ is bad because the real email addresses can have more complicated form than
 \begin{verbatim}
 wxString text;
 ...
-wxRegEx reEmail = "([^@]+)@([[:alnum:].-_].)+([[:alnum:]]+)";
+wxRegEx reEmail = wxT("([^@]+)@([[:alnum:].-_].)+([[:alnum:]]+)");
 if ( reEmail.Matches(text) )
 {
     wxString text = reEmail.GetMatch(email);
     wxString username = reEmail.GetMatch(email, 1);
-    if ( reEmail.GetMatch(email, 3) == "com" ) // .com TLD?
+    if ( reEmail.GetMatch(email, 3) == wxT("com") ) // .com TLD?
     {
         ...
     }
 }
 
 // or we could do this to hide the email address
-size_t count = reEmail.ReplaceAll(text, "HIDDEN@\\2\\3");
+size_t count = reEmail.ReplaceAll(text, wxT("HIDDEN@\\2\\3"));
 printf("text now contains %u hidden addresses", count);
 \end{verbatim}
 
-- 
2.50.0

