C regular expressions?

Discuss Programming

C regular expressions?

Postby 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)?
ZiaTioN
administrator
administrator
 
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm

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

$ man regex

(Sorry, been on vacation)
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron