Regular Expressions

RTILA allows to use FILTERS to add regular expressions.

In this example, we use the DOM from: https://books.toscrape.com/

The rating comes from a paragraph class, and it’s labeled with words from “One” to “Five”.

It’s convenient to target the .star-rating class, and extract the rating word with a Regular Expression.

In RTILA, create a selector with:

And create a Filter with the following Regular Expression:

(One|Two|Three|Four|Five)

Check the results in the preview panel:

You can learn more about filters from https://rtila.com/docs/using-filters-to-complete-a-url/

    Powered by BetterDocs

    Leave a Reply