Hi Mike,

I've been using the www.regexpstudio.com component for years in D7, and it works fine. It should work fine in D5.

D2009 and forward has an Embarcadero-provided TPerlRegEx class (and perhaps earlier versions do too, don't know for sure, but D7 does not), which may be why Andrey has not updated his TRegExpr class.

In any case, since regular expression patterns should all be standard Perl expressions, you should be able to use some {$IFDEF}'s to use TRegExpr in D5 and TPerlRegEx in D2010. Might need to do a bit of experimenting...

At 02:48 PM 10/26/2011, SoftTech wrote:
Greetings Kyle,

Do you know of any available that will work with Delphi 5.1 and Delphi 2010 that are current?

I have been able to find just one so far www.regexpstudio.com but it has not been updated since 2014.

Thanks,
Mike

----- Original Message ----- From: "Kyle Cordes" <k...@kylecordes.com>
To: "Delphi-Talk Discussion List" <delphi-talk@elists.org>
Sent: Wednesday, October 26, 2011 3:12 PM
Subject: Re: Extract a phone number from a memo


On Wed, Oct 26, 2011 at 12:28 PM, SoftTech <mi...@softtechks.com>

So what is the best way to extract any phone numbers that may be found in
the memo?


My suggestion is to do this using a regular expression library and
well formed regex.

Why?

1) Less code to write. Probably a few lines of code.

2) You can very likely find a regex that someone else has written,
that handles the wide variety of phone number formats to be found "in
the wild".



--
Kyle Cordes
http://kylecordes.com
__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk

--
MailScanner Virus/Spam/Malware: PASS (GZ)


__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk

__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk

Reply via email to