Free Regular Expression (Regex) Libraries and Source Code
Match Text Patterns the Concise and Efficient Way
Free Regular Expression (Regex) Pattern Matching Libraries and Source Code
Regular expression ("regex" for short) pattern matching is a concise and hopefully efficient way of specifying a piece of text for the purpose of searching for it or manipulating it in some way. It is often used in things like search and replace tools, text editors (for find and replace facilities), compiler construction, in a large number of programming languages (including, notably, Perl), etc.
The free libraries on this page allow you to include regex facilities in your programs without having to reimplement it from scratch. The libraries typically provide a set of functions or API that you can call to pass your regular expression and the string to use, and it will do the hard work for you. They are useful for people implementing text editors, command line shells, etc.
Incidentally, if you want to check your program's regular expressions handling (or even to just verify your own regex patterns) you can use one of the Free Interactive Regular Expression (Regex) Testers and Builders software around to compare the results.
Related Pages
- Free Spell Checker Libraries, Source Code, Controls, Components
- Free PDF Programming Libraries and Source Code
- Free FTP, SFTP and TFTP Source Code and Libraries
- Free Games Programming Libraries and Source Code
- Free 3D Software Box Image Makers
- Free C / C++ Libraries, Source Code and Frameworks
- Free Pascal and Delphi Libraries and Source Code
- The Beginner's A-Z Guide to Starting/Creating Your Own Website
- How to Register Your Own Domain Name
Disclaimer
The information provided on this page comes without any warranty whatsoever. Use it at your own risk. Just because a program, book, document or service is listed here or has a good review does not mean that I endorse or approve of the program or of any of its contents. All the other standard disclaimers also apply.
Free Regular Expression (Regex) Libraries and Source Code
- PCRE Library: Perl Compatible Regular Expressions
If you are familiar with the Perl regular expression syntax and semantics, the PCRE library will appeal to you. This library provides regex pattern matching in a Perl compatible way using both a native API as well as a set of wrapper functions that corresponds to the POSIX regular expression API. The library is distributed under the BSD licence.
- Onigurama
Onigurama is a regular expressions library that allows you to specify a different character encoding for every regular expression object. It supports the GNU regex API, the POSIX regex API and the Onigurama native expressions. The library is licensed under the BSD licence and works under Unix-type systems (eg, Linux, Mac OS X, FreeBSD, etc) and Windows.
- Boost C++ Libraries
The Boost C++ Libraries site is a source of "free peer-reviewed portable C++ source libraries" (quoted from the site). There are numerous libraries available, including libraries for regex matching (under "String and text processing"). With this library, it's possible to write your regular expression as a string or as an expression template, "which can refer to each other and themselves recursively with the power of context-free grammars".
- Regular Expression Component Library
The Regular Expression Component Library uses a property-method-event architecture that works in Borland C++ Builder and Microsoft Visual C++ (see the Free C++ Compilers page for free official versions of the Microsoft and Borland compilers if you don't already have one).
- regex
regex is a regular expression parser that is released into the public domain (or so the site says). It is useful if you want to write a program using regular expressions but don't want to use the GPL ones that come from the Free Software Foundation. (The package is somewhere in the middle of the page linked to; just scroll down to find it.)
Related Pages
- Free HTML Editors and WYSIWYG Web Editors
- Free Clipboard History Managers
- Free Help Authoring Tools
- Free Hard Disk Backup and Restore, Hard Disk Image and Cloning Utilities
- Free CD and DVD Burners and Copying Software
- Important Precautions to Take When Buying a Domain Name
- The Fine Print in Web Hosting: Resource Usage Limits
- How to Point a Domain Name to Your Website (Or What to Do After Buying Your Domain Name)
Can't Find What You're Looking For?
Search the site using Google.
Newest Pages
- How to Add a Contact Form (Web Form) to Your Website Using Dreamweaver CS5.5
- How to Efficiently Manage a Multi-Page Website with Dreamweaver CS5.5
- How to Reserve a Domain Name. Do You Need a Web Host if You Want to Reserve a Domain for Future Use?
- How to Customize the Navigation Menu on Your Website with Dreamweaver CS5.5
- What's the Difference Between a Content Management System (CMS), a Blog, a Web Editor and an Online Site Builder?
- Free Image/Photo Slide Show JavaScript
- Free GUI Builders, Application Builders and Rapid Application Development (RAD) Software
- HTML Tutorial - Learn to Design a Website using HTML
- How to Centre a Background Image or Photo on Your Web Page Using KompoZer
- How to Create Rounded Corners for Your Box Borders in CSS
- How to Set Up a Standard User Account (or Limited Account) on Windows Vista and Windows 7 for Daily Use
Popular Pages
- How to Create/Make Your Own Website: The Beginner's A-Z Guide
- How to Register Your Own Domain Name - how to get your own domain name
- Dreamweaver CS5.5 Tutorial: How to Design a Website with Dreamweaver CS 5.5
- How to Create a Bootable Windows XP Setup CD/DVD on a Preinstalled Windows System
- Free Partitioning Software - Copy, Create, Move, Resize, Convert, Undelete Partitions
- Free Data Recovery, File and Partition Recovery, Undelete and Unformat Software
- How to Create an Emergency Windows Rescue CD
- Free DVD Authoring and Creation Software
- Free CD and DVD Burners and Copying Software
- Free Hard Disk Backup and Restore, Hard Disk Image and Cloning Utilities
How to Link to This Page
It will appear on your page as:
Free Regular Expression (Regex) Libraries and Source Code
