Regular expressions . . .

Hi;

In Solaris when I need do some regular expressions processing within a C
program, I can use regcmp() and regex().

I'd like to know if there's something like that in Linux.

If there's something like regcmp() and regex() in Linux, I'd be glad if some examples were provided.

Thanks in advance

Reginaldo
LVL 2
rdelfinoAsked:
Who is Participating?
 
time4teaConnect With a Mentor Commented:
Urm, no I've never used the functions... I assume they are not a million miles different from how you have previously used them in Solaris!
0
 
time4teaCommented:
You can use regcomp() and regexec()

( I just did a ls /usr/man/man3/r* to find this out.... )

0
 
rdelfinoAuthor Commented:

Thanks.

Could you send me examples?

Reginaldo
0
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.