Minor typo: dash needs to be first in character class group (#664)
This commit is contained in:
parent
64a1716d71
commit
c7a2442f64
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue