Skip to content

Commit

Permalink
Merge pull request #19 from frederickps/patch-1
Browse files Browse the repository at this point in the history
Update 04-regex.Rmd
  • Loading branch information
cimentadaj authored Feb 6, 2024
2 parents 3460f38 + e628773 commit 37b6543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/04-regex.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Be aware that you need to append `\\` in front of **any** special character in r

## The OR (`|`) operator

To make your regexp generic, you'll often want to match either one regexp or another. The `|` allows you to do it very succintly. Suppose we want to extract the century from the vector below. We can do it like this:
To make your regexp generic, you'll often want to match either one regexp or another. The `|` allows you to do it very succinctly. Suppose we want to extract the century from the vector below. We can do it like this:

```{r}
borges_two_phrase <- c(
Expand Down

0 comments on commit 37b6543

Please sign in to comment.