Exercises on RegEx and XPath

In this part, we are going to do some exercises that will be about writing XPaths and RegEx rules. For this purpose, we will use some open source tools.

One of the best open source platforms for practising writing RegEx rules is https://regex101.com/: 

Regular expressions on regex101.com

As you see from the screenshot of regex101.com, the following is true:

  • You can add some text strings to the Test String part and you can add your regular expressions to the Regular Expression part.
  • On the Test String part, you will be able to see the matched strings. 
  • For testing your XPath rules, you can use Google Chrome's developer ...

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.