Pattern matching in C, pcre alternative

I am trying to write C code that will find hyperlinks in the mail and replace them. Is using pcre library a good thing? Since pcre is supposedly too slow, is there an alternative?

+3
source share
1 answer

C is the last language I would choose for this. First, if you want to do this with high precision, use the MIME parser to output the body of the HTML. Java has mime4j, Perl has MIME :: Parser, Python has email, etc. It is not so difficult, and I am ready to help with this step in any of these languages, if you want. Second, use an HTML parser to isolate links.

, Perl PHP. . . URL-, sed. URL-, , , - , , url_encode, P- .

+3

All Articles