Skip to content

Commit

Permalink
Corrects documented output (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnieMayden authored and sebastiandedeyne committed May 29, 2018
1 parent 51eeb54 commit 8213154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Regex::match('/a/', 'abc')->result(); // 'a'

// Capturing groups with `match`
Regex::match('/a(b)/', 'abc')->result(); // 'ab'
Regex::match('/a(b)/', 'abc')->group(1); // 'a'
Regex::match('/a(b)/', 'abc')->group(1); // 'b'

// Setting defaults
Regex::match('/a(b)/', 'xyz')->resultOr('default'); // 'default'
Expand Down

0 comments on commit 8213154

Please sign in to comment.