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
Adam
--
View this message in context:
http://harbour-devel.1590103.n2.nabble.com/hb-rexexlike-and-hb-regexhas-not-work-tp5079453p5079453.html
Sent from the harbour-devel mailing list archive at Nabble.com.
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour