I want creat a C program for Unix that can porcess the Regular Expression,like a simple Perl interpreter. Do I have to personally write an regexp engine?
Asked
Active
Viewed 396 times
-2
-
Have you done any research into regex with C, do you have some code to show us? – kevlar1818 May 24 '12 at 16:52
-
I can only write a simple lexical analyzer. – Ghjhdf May 24 '12 at 16:58
-
possible duplicate of [c regular expression howto](http://stackoverflow.com/questions/1631450/c-regular-expression-howto) – Sinan Ünür May 24 '12 at 16:58
1 Answers
1
http://www.gnu.org/software/libc/manual/html_node/Regular-Expressions.html
You might like to look for a library with it already coded. C uses librarys to allow you to include other peoples code into your work. I assume there are many regular expression librarys for you to use already to go!

user1399238
- 183
- 1
- 7
-
No prob! Happy coding! If you have a lot of stuff to code in C you may like to check out K&R or some other nice references, then just skim them over so you learn the rough idea of how the language works :). – user1399238 May 24 '12 at 17:05
-
I'm just a studious novice.Why those who belittle my question?I am so sad.But you are a good person.Thank you. – Ghjhdf May 24 '12 at 17:29
-
@fiigii : Don't forget to accept the answer that helps you solve your problem. The reputation points given to the user do not affect you reputation points. Good luck. – shellter May 24 '12 at 21:39