Re: [Dev-C++] Regular expressions: string substitution with pcre or any other library?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel K. O. <dan...@ya...> - 2006-02-15 18:07:05
|
Bernd Muent wrote: > F.E. I can do the following: > > Regex* rex; > String* > replacedTags=rex->Replace(originalLine,S"<(.*)?>,S"<SPECIAL>$1</SPECIAL>"); > > > For a special program I would like to do the same in a standard C++ > program. Why not use Boost.Regex? regex_replace() will probably do what you want. http://boost.org/libs/regex/doc/regex_replace.html --- Daniel K. O. _______________________________________________________ Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com |