On Thu, 20 May 2010, Adam Lubszczyk wrote: Hi!
> Try sample: > **************************************************** > FUNCTION main() > LOCAL reg := hb_regexcomp(".*B.*") > LOCAL cText := "ABC" > LOCAL x > ? hb_regexlike(reg,cText) > ? hb_regexhas(reg,cText) > IF VALTYPE(x:=hb_regex(reg,cText)) == "A" > ? "FOUND:",x[1] > ENDIF > RETURN nil > **************************************************** > Write: > .F. > .F. > FOUND: ABC > Harbour ver: 2.1.0beta1 (Rev. 14520) > hbpcre.lib ver: 8.02 2010-03-19 .T. .T. FOUND: ABC So all is correct. 10 against 1 that you created the problem yourself by linking application "manually" using wrong library order so the very old PCRE library which is part of BCC CRTL used to emulate POSIX regex is partially linked instead of HBPCRE. Please use HBMK2. best regards, Przemek _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour