Pony library that brings Perl compatible regular expressions to Pony. Requires libpcre2. See installation for more details.
Production ready.
- Install corral
corral add github.com/ponylang/regex.git --version 1.1.6
corral fetch
to fetch your dependenciesuse "regex"
to include this packagecorral run -- ponyc
to compile your application
regex
requires the libpcre2 library in order to operate. You'll need to install it within your environment of choice, either via your package manager or from source.
sudo apt-get install -y libpcre2-dev
apk add --update pcre2-dev
pacman -S pcre2
sudo pkg install pcre2
sudo pkg install pcre2
brew update
brew install pcre2
sudo port install pcre2
doas pkg_add pcre2
sudo dnf install pcre2-devel
sudo yum install pcre2-devel
sudo zypper install pcre2-devel
If you use Corral to include this package as dependency of a project, Corral will download and build PCRE2 for you the first time you run corral fetch
. Otherwise, before using this package, you must run .\make.ps1 libs
in its base directory to download and build PCRE2 for Windows. In both cases, you will need CMake (3.15 or higher) and 7Zip (7z.exe
) in your PATH
; and Visual Studio 2017 or later (or the Visual C++ Build Tools 2017 or later) installed in your system.
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-10.21.tar.bz2
tar xvf pcre2-10.21.tar.bz2
cd pcre2-10.21
./configure --prefix=/usr
make
sudo make install