Minor typo: dash needs to be first in character class group (#664)

This commit is contained in:
Garrick Aden-Buie 2018-06-20 05:10:38 -04:00 committed by Hadley Wickham
parent 64a1716d71
commit c7a2442f64
1 changed files with 1 additions and 1 deletions

View File

@ -853,7 +853,7 @@ You can use the other arguments of `regex()` to control details of the match:
phone <- regex("
\\(? # optional opening parens
(\\d{3}) # area code
[)- ]? # optional closing parens, dash, or space
[) -]? # optional closing parens, space, or dash
(\\d{3}) # another three numbers
[ -]? # optional space or dash
(\\d{3}) # three more numbers