PCRE wrapping library that offers type-safe preg_* replacements


This library gives you a way to ensure `preg_*` functions do not fail silently, returning unexpected `null`s that may not be handled.

It also makes it easier to work with static analysis tools like PHPStan or Psalm as it simplifies and reduces the possible return values from all the `preg_*` functions which are quite packed with edge cases.

This library is a thin wrapper around `preg_*` functions with some limitations. If you are looking for a richer API to handle regular expressions have a look at rawr/t-regx instead.

Composer helps you declare, manage and install dependencies of PHP projects, ensuring you have the right stack everywhere.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install php-composer-pcre