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("
|
phone <- regex("
|
||||||
\\(? # optional opening parens
|
\\(? # optional opening parens
|
||||||
(\\d{3}) # area code
|
(\\d{3}) # area code
|
||||||
[)- ]? # optional closing parens, dash, or space
|
[) -]? # optional closing parens, space, or dash
|
||||||
(\\d{3}) # another three numbers
|
(\\d{3}) # another three numbers
|
||||||
[ -]? # optional space or dash
|
[ -]? # optional space or dash
|
||||||
(\\d{3}) # three more numbers
|
(\\d{3}) # three more numbers
|
||||||
|
|
Loading…
Reference in New Issue