From 2f5dd1d93106fe782abd6f325b04f4ce806a9d4b Mon Sep 17 00:00:00 2001 From: rudashi Date: Wed, 27 Mar 2024 07:36:25 +0100 Subject: [PATCH] Updated docs --- docs/usage.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/usage.md b/docs/usage.md index 380a4e3..c6292d4 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -107,6 +107,18 @@ $pattern = Regex::startOfLine(); The `FluentBuilder` must be initialized before using tokens. Use one of the above helper methods to do this. Tokens can be chained to create increasingly complex regular expressions. +#### `character` + +The `character` method literally matches the given character. + +```php +use Rudashi\Regex; + +$pattern = Regex::build()->character('-'); + +// /-/ +``` + #### `exactly` The `exactly` method literally matches the given string.