Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rudashi committed Mar 27, 2024
1 parent ea31d13 commit 2f5dd1d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2f5dd1d

Please sign in to comment.