hi all,
I have a char * which is delimitered by commas e.g
char * string = "cn=text1,text2,text3";
I want to parse this string to return just text1
A sed command would be something like
$string =~ /^cn=(.*[0-9]),.*$/;
$tex1 = $1;
but i have no idea how to do something similar in C. Any ideas? Thanks for your time
jim
I have a char * which is delimitered by commas e.g
char * string = "cn=text1,text2,text3";
I want to parse this string to return just text1
A sed command would be something like
$string =~ /^cn=(.*[0-9]),.*$/;
$tex1 = $1;
but i have no idea how to do something similar in C. Any ideas? Thanks for your time
jim