|
From: Szathmary L. <sz...@de...> - 2003-05-06 11:36:00
|
Hi!
I first met regular expressions in Perl. In this language it's very easy
to use regexp, so could anyone tell me how to transform them to C?
Let's see an example:
$line = "<name>QL</name><path>ql.exe</path>";
if ($line =~ m#<name>(.*)</name><path>(.*)</path>#)
{
print "Name: $1, path: $2\n";
}
How could it be rewritten to C? Which regexp. library do you suggest
using?
Thanks in advance,
Laszlo
|