Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Commit

Permalink
Update README.md (#152)
Browse files Browse the repository at this point in the history
Fix `extractMatchingRegex` example: `folder` method is now shown as method, not as object property.
  • Loading branch information
ikeedo authored and Chumper committed Apr 15, 2019
1 parent 345abf0 commit 2f5dd0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ Extracts the content of the zip archive matching regular expression to the speci

Example: extract all files ending with `.php` from `src` folder and its sub folders.
```php
Zipper::make('test.zip')->folder->('src')->extractMatchingRegex($path, '/\.php$/i');
Zipper::make('test.zip')->folder('src')->extractMatchingRegex($path, '/\.php$/i');
```

Example: extract all files **except** those ending with `test.php` from `src` folder and its sub folders.
```php
Zipper::make('test.zip')->folder->('src')->extractMatchingRegex($path, '/^(?!.*test\.php).*$/i');
Zipper::make('test.zip')->folder('src')->extractMatchingRegex($path, '/^(?!.*test\.php).*$/i');
```

# Development
Expand Down

0 comments on commit 2f5dd0a

Please sign in to comment.