How to use regular expressions in C++ for Linux environment.

Dear experts,

I want to implement regular expressions in C++ for Linux environment. One of my friend recommended me to use REGEX Library by GNU. Could you provide me some documentation as well as code examples about using this library?

Who is Participating?
evilrixConnect With a Mentor Senior Software Engineer (Avast)Commented:
I'd strongly recommend you consider using the regex library that is part of boost. Not only is it a fantastic library it will end up being part of the next version of the CPP standard.
sarabandeConnect With a Mentor Commented:
for C development simply do 'man regex' at the shell and you see the syntax for reccomp (compiles a regular expression) and regexec (applies the regular expression). i used it once and had no significant problems.


Deepu AbrahamR & D Engineering ManagerCommented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.