Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use RegEx? [closed]

Tags:

c

regex

Doing regex in C# or PHP is very easy for me now. However currently I have a need to use regex in C. And, I don't seem to understand the usage of regcomp or regexec fully. It's definitely because of my lack of experience in C.

like image 932
Dave Avatar asked Dec 08 '22 06:12

Dave


1 Answers

Use the PCRE library. Examples are included in the source, in the demo/ directory. Here's a direct link to pcredemo.c.

like image 121
John Millikin Avatar answered Jan 04 '23 12:01

John Millikin