Jump to content

regular expressions

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
I am interested to know what libraries people use for regular expressions in C++? I've read about Boost, but has anyone tried it? Or does anyone have any other recommendations?

#2
chax

chax

    Learning Programmer

  • Members
  • PipPipPip
  • 76 posts
Same here. I too have heard about "Boost library" but haven't tried it.
Try this:
Boost.Regex
Size does matter for science and its laws changes accordingly.
[SIGPIC][/SIGPIC]
An C

#3
morefood2001

morefood2001

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,720 posts
I have used boost for regular expressions in C++, and I've found it is helpful, but I don't like Regex that well :P

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I've looked briefly at Boost Regex, but not in depth. From what I've seen, it should meet all your needs, however.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts

morefood2001 said:

I have used boost for regular expressions in C++, and I've found it is helpful, but I don't like Regex that well :P

Not many people are fans of regular expressions, but sometimes they are necessary.

Thanks for the input, I suppose I will give boost a try.

#6
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Regular expressions have a learning curve, but can be VERY powerful. I've used them to identify duplicate data in the CSV output of a table, for example.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog