[Lazarus] How to use TRegExpr class (in synregexpr.pas)
Mark Morgan Lloyd
markMLl.lazarus at telemetry.co.uk
Thu Oct 24 15:18:15 CEST 2013
FreeMan wrote:
> Hello,
> Lazarus Revision 43315
> TRegExpr class in "/opt/lazarus/components/synedit/synregexpr.pas"
>
> I need check IP address, my IP4OK function for this. If I sent variable
> result is false, but sent parameter like '127.0.0.1' result is true,
> what is wrong?
>
>
> EDT_IP: TMaskEdit;
> ......
> EDT_IP.EditMask:= '!999.999.999.999;1; ';
I'd suggest checking /exactly/ what you're passing in the initial test
case, i.e. make sure there's no leading spaces etc.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the Lazarus
mailing list