Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Use Regexp in C

Status
Not open for further replies.

amarg

Programmer
Nov 19, 2002
106
IN
Hi,

I just want to write a function for the validation of email address. By using regexp is can be easy. But I never used
regexp in C. Please help me to out come from this problem.

Is there any code exist on net ?

Regards,
Amar
 
There is no standard regex in C.

There are however a number of libraries which implement several varieties of regex - do you have one of these?
Or are you looking for suggestions (state OS/Compiler).

Are you looking for "grep" compatibility or "perl" compatibility when it comes to composing your regex'es.

--
 
Well...there is the posix regexp kit..regcomp,etc..
That's standard across all posix compliant unices,
and possibly other 'posix compliant' OS's like NT.
Checked on UX, Linux and freeBsd and the implementations
are pretty standard.
man 3 regcomp.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top