Displaying 2 results from an estimated 2 matches for "u_regex_rule_syntax".
2017 Sep 28
2
Searching for Enumerated Items using str_count() from the stringr package
...enumerated items.
However, I am receiving this error message even though I thought that I
properly escaped the special character closed parenthesis:
> Count<-str_count(text3,keywords)
Error in stri_count_regex(string, pattern, opts_regex = opts(pattern)) :
Syntax error in regexp pattern. (U_REGEX_RULE_SYNTAX)
===
Here is example code:
text1<-"This is a list:
1) Number 1
2) Etc
3) Etc"
text2<-"This is NOT a list:
Blah, blah, blah
Blah, blah, blah"
text3<-c(text1,text2)
text3
{keywords<-c(paste(0:9,"\\)"),paste(0:9,"\\)",sep=""),
paste...
2017 Sep 28
0
Searching for Enumerated Items using str_count() from the stringr package
...m receiving this error message even though I thought that I
> properly escaped the special character closed parenthesis:
>
>
>> Count<-str_count(text3,keywords)
> Error in stri_count_regex(string, pattern, opts_regex = opts(pattern)) :
> Syntax error in regexp pattern. (U_REGEX_RULE_SYNTAX)
>
>
> ===
>
> Here is example code:
>
>
> text1<-"This is a list:
> 1) Number 1
> 2) Etc
> 3) Etc"
>
> text2<-"This is NOT a list:
> Blah, blah, blah
> Blah, blah, blah"
>
> text3<-c(text1,text2)
> text3
>...