Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed two small errors #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ show_regex(number_pattern)
re2_replace(string, pattern, rewrite)
```

Searches the string "input string" for the occurence(s) of a substring that matches 'pattern' and replaces the found substrings with "rewrite text".
Searches the string "input string" for the occurrence(s) of a substring that matches 'pattern' and replaces the found substrings with "rewrite text".

``` r
input_string = "this is just one test";
Expand Down Expand Up @@ -237,7 +237,7 @@ re2_extract("[email protected]", "(.*)@([^.]*)")

We can create a regular expression object (RE2 object) from a string. It will reduce the time to parse the syntax of the same pattern.

And this will also give us more option for the pattern. run `help(re2)` to get more detials.
And this will also give us more option for the pattern. run `help(re2)` to get more details.

``` r
regexp = re2("test",case_sensitive = FALSE)
Expand Down