How to match words 

When there is a need to match entire words, single characters and modifiers can be used to repeat a character or a set of character:

  • + repeats the preceding character or set of character
  • * repeats the preceding character
  • {x} is used for defining the exact number of repetitions.

Get R Web Scraping Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.