Just Great Software

Regex Buddy - Learn, create, understand, test, use and store regular expressions

 Introduction 

 

 Buy Now 

 Our Guarantee 

 Download 

 Testimonials 

 Contact Us 

 User Forum 

 

 Screen Shots 

 Live Demos 

 Regular Expressions 

 Features & Benefits 

 Programming 

 C# 

 Delphi 

 GNU BRE & ERE 

 Groovy 

 Java 

 JavaScript 

 MySQL 

 Oracle Database 

 PCRE 

 Perl 

 PHP 

 POSIX BRE & ERE 

 PostgreSQL 

 PowerShell 

 Python 

 R Language 

 REALbasic 

 Ruby 

 Tcl ARE 

 VB6 & VB.NET 

 VBScript 

 wxWidgets 

 XML Schema 

 Linux 

 

 Press Resources 

 Version History 

 Newsletter 

 Blog 

 Affiliates 

 

 

PowerGREP - Find files and information or search and replace through files and folders
EditPad - Convenient, powerful and versatile text editor to edit all kinds of text files
Ace Text - Store, manage, edit and reuse text from a central location
HelpScribble - Full-featured help authoring tool for creating help files from start to finish
DeployMaster - Installation builder delivering your software with a good first impression
      

Easily Use Regular Expressions in Your Delphi Source Code

Delphi Prism and Delphi for .NET
Using the CLR Regex Classes

Microsoft's .NET framework provides a solid implementation of regular expressions. If you're using Delphi Prism (formerly known as Oxygene and Chrome), or the Delphi for .NET compiler that CodeGear shipped with Delphi 8, 2005, 2006, and 2007, then simply add System.Text.RegularExpressions to the uses clause. You can then use all of the the regex classes from the .NET Common Language Runtime.

While .NET's regex support is solid, Microsoft's regex documentation is very poor. And it does not cover the Delphi language either. Fortunately, RegexBuddy makes it very easy to use the power of regexes in your Delphi Prism and Delphi for .NET source code.

      
Only US$ 39.95
Windows 98, ME, NT4, 2000, XP and Vista
100% satisfied or money back

Delphi for Win32
TPerlRegEx VCL Component

If your application is a Win32 application, you obviously cannot use the regex support from the .NET framework. Delphi itself does not provide a regular expression library, so you will need to use a third party VCL component. RegexBuddy's Win32 Delphi source code snippets are based on the TPerlRegEx VCL component. This component is a wrapper around PCRE, with additional support for replace and split actions. You can download TPerlRegEx for free. TPerlRegEx Delphi source, PCRE C sources, PCRE OBJ files and DLL are included. You can choose to link the OBJ files directly into your application, or to use the DLL.

Just Great Software is proud to be a CodeGear Technology Partner

See How Easy Coding with Regexes Can Be

First, use RegexBuddy to define a regex or retrieve a regexp saved in a RegexBuddy library. Rely on RegexBuddy's clear regex analysis, which is constantly updated as you build the pattern, rather than dealing with the cryptic regex syntax on your own. Detailed help on that syntax is always only a click away.

If you copied a regex written for another programming language, simply paste it into RegexBuddy, and select the original regex flavor. RegexBuddy will then automatically convert it to the .NET or PCRE regex flavor when you generate a Delphi Prism, Delphi for .NET, or Delphi for Win32 source code snippet.

If you created a new regular expression, test and debug it in RegexBuddy before using it in your Delphi source code. Test each regex in RegexBuddy's safe sandbox without risking precious data. Quickly apply the regex to a wide variety of input and sample data, without having to produce that input through your application.

Finally, let RegexBuddy generate a source code snippet that you can copy and paste directly into your Visual Studio or RAD Studio IDE, or whichever Delphi code editor you use. Just choose what you want to use the regex for, and a fully functional code snippet is ready. You can change the names of variables and parameters to suit your naming style or the current situation, which RegexBuddy automatically remembers.

While the .NET Regex classes and the TPerlRegEx component are quite different, you don't have to remember the details of how to use either of them. Just tell RegexBuddy what you want to do, and you will get the proper Delphi Prism, Delphi for .NET, or Delphi for Win32 code straight away. Anything can be done: testing a string for a match, extracting search matches, validating input, search-and-replace, splitting a string, etc.

Let RegexBuddy Make Regex Easy for You

Using the PCRE-based TPerlRegEx component in Delphi for Win32

Using the PCRE-based TPerlRegEx component in Delphi for Win32


Using the .NET’s Regex classes in Delphi Prism

Using the .NET’s Regex classes in Delphi Prism


Using the .NET’s Regex classes in Delphi for .NET

Using the .NET’s Regex classes in Delphi for .NET

 

 

Page URL: http://www.regexbuddy.com/delphi.html
Page last updated: 09 April 2009
Site last updated: 22 June 2009

Published by Just Great Software Co. Ltd.
Copyright © 2004-2009 Jan Goyvaerts.
All rights reserved.