1.

Which of the following function is used for searching text strings by means of regular expression?(a) grepd(b) grepl(c) gepexpr(d) all of the mentionedThe question was posed to me during an interview.I want to ask this question from Regular Expressions and Text Variables topic in section Getting Data of Data Science

Answer» RIGHT answer is (b) grepl

The best I can explain: GREP, grepl, regexpr, gregexpr and regexec SEARCH for matches to argument pattern WITHIN each element of a character VECTOR.


Discussion

No Comment Found

Related InterviewSolutions