regular expression in Gtk



Hi all.

Does anybody know how to use regular expressions in Gtk program?

For example for
pattern : ^[0-9]\{6\}/[0-9]\{3,4\}$
string : 123456/789
I have tried :

1. 
regcomp() and regexec() in terminal program
OK

2.
regcomp() and regexec() in Gtk program
FALSE

Why?

I've found Gtk functions gtk_pattern_...(). Does this functions use the
same format of regular expressions like regexec()? Can yoou give me some
example?

Thank you.
Michal.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]