Regular expression searching in CRichEditView
Marty Wagner -- marty@concentra.com
Monday, May 13, 1996
Does anyone know how to implement regular expression
searching in the CRichEditCtrl? As far as I can tell from the
documentation, it only supports string searches by using
FindText
using VC++ 4.1 on windows NT 3.51
marty wagner
marty@concentra.com
Mike Blaszczak -- mikeblas@msn.com
Wednesday, May 15, 1996
---------
From: owner-mfc-l@netcom.com on behalf of Marty Wagner
Sent: Monday, May 13, 1996 12:31
> Does anyone know how to implement regular expression
> searching in the CRichEditCtrl? As far as I can tell from the
> documentation, it only supports string searches by using
> FindText
Right.
You'll need to work up your own mechanism to implement a regex search. You can
get good regex engines from lots of different places: you might try to find
source code for the "grep" utility on the network and cannabalize the engine
it has. You can then turn the engine loose on the data stream that comes from
the control when you ask it to spew its data.
> using VC++ 4.1 on windows NT 3.51
Thanks
.B ekiM
TCHAR sz[] = _T("Ten _bucks_? For that?");
| Вернуться в корень Архива
|