Skip to content

Commit 829bb54

Browse files
committed
Example updated
1 parent 654d569 commit 829bb54

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,25 +52,28 @@ Regular expressions (regex) are powerful, no doubt. They're the Swiss Army knife
5252

5353
Enter **EloquentRegex**. Our goal is to make working with regex in Laravel not just bearable, but actually enjoyable. Yes, you heard that right—**enjoyable**!
5454

55-
EloquentRegex is a PHP/Laravel package that offers a fluent, intuitive interface for constructing and executing regular expressions. Whether you need to validate user input, parse text, or extract specific information from strings, EloquentRegex makes it simple and straightforward. For example:
55+
EloquentRegex is a PHP/Laravel package that offers a fluent, intuitive interface for constructing and executing regular expressions. Whether you need to validate user input, parse text, or extract specific information from strings, EloquentRegex makes it simple and straightforward.
56+
57+
**For example:**
5658

5759
```php
5860
$link = 'https://www.example.com/home';
59-
$isValidUrl = EloquentRegex::source($link)->url()->check();
61+
$isValidUrl = EloquentRegex::source($link)->url()->check(); // true
6062
```
6163

6264
**Another:**
6365

6466
```php
6567
$isStrong = EloquentRegex::source("StrongP@ssw0rd")->password(function($string) {
6668
return $string->minLength(8)->minUppercase(1)->minNumbers(1)->minSpecialChars(1);
67-
})->check();
69+
})->check(); // true
6870
```
6971

70-
**One more:** 😄
72+
**One more** 😄
7173

7274
```php
7375
EloquentRegex::start("#hello #world This is a #test")->hash()->text()->get();
76+
// ['#hello', '#world', '#test']
7477
```
7578

7679
## Key Features

0 commit comments

Comments
 (0)