On Thu, 08 Apr 2010, Janik, Jaroslav wrote:
Hi,
> Has anybody experience with usage of lCaseSensitive parameter in
> HB_RegExAll function ?
> HB_RegExAll( <cRegEx> , ;
> <cString> , ;
> [<lCaseSensitive>], ;
> [<lNewLine>] , ;
> [<nMaxMatches>] , ;
> [<nWichMatch>] , ;
> [<lMatchOnly>] ) --> aAllRegexMatches
> It seems not working for me. It is allways case sensitive.
It works for me.
> Could anybody send an example demonstarting lCaseSensitive parameter ?
proc main()
local cRegEx, cString
local aResults
cRegEx := "[<][A-Z0-9]*[>]"
cString := "<P1> $ <P2> / <P3> - <p4> * <p5>"
aResults := HB_RegExAll( cRegEx, cString, .T. )
? hb_valToExp( aResults )
aResults := HB_RegExAll( cRegEx, cString, .F. )
? hb_valToExp( aResults )
wait
return
My results:
{{"<P1>"}, {"<P2>"}, {"<P3>"}}
{{"<P1>"}, {"<P2>"}, {"<P3>"}, {"<p4>"}, {"<p5>"}}
so they are correct.
best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour