PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.cplus > Regular Expressions
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Regular Expressions

Réponse
 
LinkBack Outils de la discussion
Vieux 28/12/2007, 12h48   #1
alexrixhardson@yahoo.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Regular Expressions

Dear fellow developers,

I am looking for a good regular expressions handling library. Am
developing an application under Fedora Linux and putting "include
<regex.h>" in my code does not make my compiler complain. I assume
this is the library documented in http://www.opengroup.org/onlinepubs/...s/regex.h.html
document. However I am wondering whether regex.h library is okay, or
would you guys recommend me to use something else (Boost RegEx
libraries for example?)?

Cheers,
Alex
  Réponse avec citation
Vieux 28/12/2007, 13h18   #2
Erik Wikström
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Regular Expressions

On 2007-12-28 13:48, alexrixhardson@yahoo.com wrote:
> Dear fellow developers,
>
> I am looking for a good regular expressions handling library. Am
> developing an application under Fedora Linux and putting "include
> <regex.h>" in my code does not make my compiler complain. I assume
> this is the library documented in http://www.opengroup.org/onlinepubs/...s/regex.h.html
> document. However I am wondering whether regex.h library is okay, or
> would you guys recommend me to use something else (Boost RegEx
> libraries for example?)?


The next version of the C++ standard will include a regex library, and
while I have not checked I am quite sure that it will be based on Boost
RegEx, so going that way will probably ensure forward compatibility.

--
Erik Wikström
  Réponse avec citation
Vieux 28/12/2007, 13h42   #3
Pavel Shved
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Regular Expressions

alexrixhard...@yahoo.com:
> Dear fellow developers,
>
> I am looking for a good regular expressions handling library. Am
> developing an application under Fedora Linux and putting "include
> <regex.h>" in my code does not make my compiler complain. I assume
> this is the library documented in http://www.opengroup.org/onlinepubs/...s/regex.h.html
> document. However I am wondering whether regex.h library is okay, or
> would you guys recommend me to use something else (Boost RegEx
> libraries for example?)?
>


Don't reinvent the wheel. Linux has powerful methods to allow
processes to communicate effectively. Start a perl program that will
parse text with perl's regular expressions, and then read its output
from your C++ program. With a little effort you get your solution and
bonus of parallelized and syncronized processes of parsing text (perl
program) and handling parsing results (C++ program).
  Réponse avec citation
Vieux 28/12/2007, 23h48   #4
Ron Natalie
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Regular Expressions

There are two good open source regex libraries. For C++
the boost regex library is probably as good as it gets.

If you want an older UNIX C-style regex Henry Spencer
wrote one decades ago at University of Toronto that's
still making the rounds (and a lot of other regex stuff
is lifted straight from it).
  Réponse avec citation
Vieux 29/12/2007, 04h25   #5
Dave Rahardja
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Regular Expressions

On 2007-12-28 07:42:27 -0600, Pavel Shved <Pavel.Shved@gmail.com> said:

> alexrixhard...@yahoo.com:
>> Dear fellow developers,
>>
>> I am looking for a good regular expressions handling library. Am
>> developing an application under Fedora Linux and putting "include
>> <regex.h>" in my code does not make my compiler complain. I assume
>> this is the library documented in
>> http://www.opengroup.org/onlinepubs/...s/regex.h.html
>> document. However I am wondering whether regex.h library is okay, or
>> would you guys recommend me to use something else (Boost RegEx
>> libraries for example?)?
>>

>
> Don't reinvent the wheel. Linux has powerful methods to allow
> processes to communicate effectively. Start a perl program that will
> parse text with perl's regular expressions, and then read its output
> from your C++ program. With a little effort you get your solution and
> bonus of parallelized and syncronized processes of parsing text (perl
> program) and handling parsing results (C++ program).


I don't see how using an existing library is reinventing the wheel.

-dr

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h27.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09728 seconds with 13 queries