Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-03-17
3
Medium Priority
?
409 Views
Last Modified: 2012-05-11

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?

BR,
0
Comment
Question by:GurcanK
3 Comments
 
LVL 40

Accepted Solution

by:
evilrix earned 500 total points
ID: 35155699
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.

http://www.boost.org/doc/libs/1_46_1/libs/regex/doc/html/index.html
http://en.wikipedia.org/wiki/C%2B%2B0x#Regular_expressions
0
 
LVL 35

Assisted Solution

by:sarabande
sarabande earned 500 total points
ID: 35155825
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.

Sara

0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
Suggested Courses

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question