error with hb_AtX

error with hb_AtX

Postby Silvio.Falconi » Sat Nov 28, 2020 7:45 pm

Linea:="<REPORTNUM>001</REPORTNUM>"

cField := hb_AtX( "<[^>]*>", Linea, .F. )

give me cField empty , why ?

I'm using Harbour, perhaps it is a xharbour function ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7053
Joined: Thu Oct 18, 2012 7:17 pm

Re: error with hb_AtX

Postby nageswaragunupudi » Sun Nov 29, 2020 2:57 pm

HB_AtX(...) works both in Harbour and xHarbour.
But the first parameter should be a valid RegEx expression.

Refer
https://en.wikipedia.org/wiki/Regular_expression
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: error with hb_AtX

Postby Silvio.Falconi » Mon Nov 30, 2020 8:36 am

nageswaragunupudi wrote:HB_AtX(...) works both in Harbour and xHarbour.
But the first parameter should be a valid RegEx expression.

Refer
https://en.wikipedia.org/wiki/Regular_expression

resolved I forget to link a lib
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7053
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 62 guests