GREAT! Thanks! ;-))

Patrick

On Wednesday 28 September 2011 at 11:12, Ella Stern wrote:

> Ron,
> 
> After your latest changes the HB_RegexReplace function works as it should ( 
> the calendaristic date of the patch is September 19 :-)
> 
> Thank you !
> 
> Ella
> 
> 
> On Tue, Sep 27, 2011 at 1:28 PM, Ella Stern <ella.st...@xharbour.com 
> (mailto:ella.st...@xharbour.com)> wrote:
> > Ron,
> > 
> > 
> > I've just tested HB_RegexReplace. Now the function is working, and the 
> > results are correct when the search is supposed to be case-sensitive.
> > 
> > So there is still a problem with the fourth input parameter of the 
> > HB_RegexReplace function call. According to the documentation this 
> > parameter is TRUE by default, and it sets the search to be case-sensitive. 
> > Below is my test code:
> > 
> > 
> > // this is a simple search, just for testing
> > ? hb_regexreplace( "[b]", "ab", "e" ) 
> > ? " "
> > 
> > 
> > // whatever value I set for the fourth parameter, the search seems to be 
> > case-sensitive
> >  ? hb_regexreplace( "[b]", "AB", "e" ) 
> >  ? hb_regexreplace( "[b]", "AB", "e", .T. ) 
> >  ? hb_regexreplace( "[b]", "AB", "e", .F. ) 
> >  ? " "
> > 
> > 
> > // the only possible workaround is to alter the REGEX pattern to enforce 
> > case-insensitive search
> > ? hb_regexreplace( "(?i)[b]", "AB", "e" ) 
> >  ? hb_regexreplace( "(?i)[b]", "AB", "e", .T. ) 
> >  ? hb_regexreplace( "(?i)[b]", "AB", "e", .F. ) 
> >  ? " "
> > 
> > Ella
> > On Mon, Sep 26, 2011 at 11:00 PM, Ron Pinkas <ron.pin...@xharbour.com 
> > (mailto:ron.pin...@xharbour.com)> wrote:
> > >  2011-09-18 15:30 UTC-0430 Ron Pinkas <ron.pinkas/at/xharbour.com 
> > > (http://xharbour.com)>
> > > * source/rtl/regexrpl.prg
> > > ! Adjusted hb_RegexReplace() to array structure returned by
> > >  hb_RegExAll()
> > > 
> > > 
> > > 
> > >  
> > > ------------------------------------------------------------------------------
> > >  All the data continuously generated in your IT infrastructure contains a
> > >  definitive record of customers, application performance, security
> > >  threats, fraudulent activity and more. Splunk takes this data and makes
> > >  sense of it. Business sense. IT sense. Common sense.
> > > http://p.sf.net/sfu/splunk-d2dcopy1
> > >  _______________________________________________
> > >  xHarbour-developers mailing list
> > > xHarbour-developers@lists.sourceforge.net 
> > > (mailto:xHarbour-developers@lists.sourceforge.net)
> > > https://lists.sourceforge.net/lists/listinfo/xharbour-developers
> > 
> 
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> xHarbour-developers mailing list
> xHarbour-developers@lists.sourceforge.net 
> (mailto:xHarbour-developers@lists.sourceforge.net)
> https://lists.sourceforge.net/lists/listinfo/xharbour-developers

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to