Page 2 of 2

Re: Regular Expression or Regex

Posted: Thu Nov 28, 2013 11:25 pm
by Carlos Britos
Hi
This is a simple tool to play with regular expressions related with harbour functions, I hope can help.
Show the return value of harbour functions while typing the regular expression.

Thee is a file with samples. You can find more samples in http://www.regexlib.com" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;

Re: Regular Expression or Regex

Posted: Fri Nov 29, 2013 3:44 am
by hmgchang
Thank you very much for the informations... :D

Re: Regular Expression or Regex

Posted: Fri Nov 29, 2013 4:06 am
by Rathinagiri
Thanks a lot. I think it will be very much useful in data validation.

Re: Regular Expression or Regex

Posted: Mon Dec 02, 2013 4:12 am
by hmgchang
I tried to capture all the function called from a prg from notepad++ using the regular expression :
\w*\s*\(.*\)
i got most of the functions but i also got :
- ( &cField) .... from the as part of cAlias->( &cField)
- CHR(32) + CHR(179) + CHR(32) .... from this line : #define COLSEP CHR(32) + CHR(179) + CHR(32)
- MSetcursor( .F.) ... from a commented line : * MSetcursor( .F.)
- DBUSEAREA( .T., "DbfNtx", "testn" ) ... from a commented line : // DBUSEAREA( .T., "DbfNtx", "testn" )
- addColumn( oColumn ) ... from an object method : b:addColumn( oColumn )
- IF ( b:hitTop .OR. b:hitBottom )
- IF(cGetClr == NIL, "I", cGetClr)
- (lFound := DBSEEK( xKey, lSoftSeek )) from : IF !(lFound := DBSEEK( xKey, lSoftSeek ))

what have i done wrong ? pls advice !

Thank you ! ;)