Operating System - HP-UX
1833783 Members
2203 Online
110063 Solutions
New Discussion

Re: Using regular expression matching in C programs...

 
SOLVED
Go to solution
Vishnu_3
Advisor

Using regular expression matching in C programs...

Hi,

Please pardon me if this does not fit into the forum.

I need to write an add on in C for a Windows application. The program would need to be given regular expression matching and searching functions which I can use from within the code. I.e, I want to call functions like regexp() inside the C program.

I tried looking for the headers and sources, I need, from the relevant C programs like grep.c on UNIX. But I'm more of bewildered now! Can you give me some clue or hint on how to go about this?

I can't write a regular expression library of my own within real time!!!

Thank you!
Vishnu.
1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Using regular expression matching in C programs...

I suspect that if you do a Google search on regexp and "Microsoft C" you will find many hits but you can simply download the GNU regex source from:
http://gatekeep.cs.utah.edu/hppd/hpux/Gnu/regex-0.12/. That will give you the source code for the string matching functions.
If it ain't broke, I can fix that.