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.6corral fetchto fetch your dependenciesuse "regex"to include this packagecorral run -- ponycto 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-devapk add --update pcre2-devpacman -S pcre2
sudo pkg install pcre2sudo pkg install pcre2brew update
brew install pcre2sudo port install pcre2doas pkg_add pcre2sudo dnf install pcre2-develsudo yum install pcre2-develsudo zypper install pcre2-develIf 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