C regular expressions?

Discuss Programming
Post Reply
ZiaTioN
administrator
administrator
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm
Contact:

C regular expressions?

Post by ZiaTioN » Tue Aug 22, 2006 7:19 am

Anyone know of any standard (or non-standard) library that will give C somewhat of a regular expression pattern matching capability? I am very familiar with all the string operator functions (strcmp, strstr, strtok, etc.) but am looking for something a little more powerful. Something that will mimic perl's capabilities. I understand that this is somewhat impossible but I also know that perl's interpreter is writtin in C and when perl code is interpreted it is compiled into byte code and run so C must have these capabilitires, however drawn out it may be.

Any ideas on how one could search a string for numerous patterns and return these patterns if found, without having to getc each and every character (or hell even with doing it that way)?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Sun Aug 27, 2006 9:28 am

$ man regex

(Sorry, been on vacation)

Post Reply