An open API service indexing awesome lists of open source software.

https://github.com/gcarreno/testregularexpressions

This is an example on how to use regular expressions
https://github.com/gcarreno/testregularexpressions

fpc free-pascal freepascal lazarus regex regexp regular-expressions

Last synced: 4 months ago
JSON representation

This is an example on how to use regular expressions

Awesome Lists containing this project

README

          

# Use of Regular Expressions
[![Build Status](https://github.com/gcarreno/TestRegularExpressions/actions/workflows/main.yaml/badge.svg?branch=main)](https://github.com/gcarreno/TestRegularExpressions/actions)
[![Supports Windows](https://img.shields.io/badge/support-Windows-blue?logo=Windows)](https://github.com/gcarreno/TestRegularExpressions/releases/latest)
[![Supports Linux](https://img.shields.io/badge/support-Linux-yellow?logo=Linux)](https://github.com/gcarreno/TestRegularExpressions/releases/latest)
[![Supports macOS](https://img.shields.io/badge/support-macOS-black?logo=macOS)](https://github.com/gcarreno/TestRegularExpressions/releases/latest)
[![License](https://img.shields.io/github/license/gcarreno/TestRegularExpressions)](https://github.com/gcarreno/TestRegularExpressions/blob/main/LICENSE)
[![Latest Release](https://img.shields.io/github/v/release/gcarreno/TestRegularExpressions?label=latest%20release)](https://github.com/gcarreno/TestRegularExpressions/releases/latest)
[![Downloads](https://img.shields.io/github/downloads/gcarreno/TestRegularExpressions/total)](https://github.com/gcarreno/TestRegularExpressions/releases)

This is an example on how to use regular expressions.

For simplicity's sake, I'm only demonstrating the `Exec`/`ExecNext` functionality. There's more to it than just these two, like the `Substitute` and `Split` functionalities.

I've also decided to use the `RegExpr` package that is provided in the packages that come by default with Free Pascal's compiler installation.
You can have a better picture of other options in this entry of the Wiki: [Regular Expression Packages](https://wiki.freepascal.org/RegEx_packages)

You can find some documentation about `TRegExpr` here: [TRegExpr Class](https://regex.sorokin.engineer/tregexpr).