---
title: Regular Expressions
description: "RTILA allows to use FILTERS to add regular expressions. In this example, we use the DOM from: https://books.toscrape.com/ ![](https://legacy.rtila.com/wp-content/uploads/2023/03/image-16.png) The rating comes from a paragraph class, and it's labeled with words from \"One\" to \"Five\". It's convenient to target the…"
url: "https://legacy.rtila.com/docs/regular-expressions/"
updated: "2023-03-06"
category: Official Commands
---

# Regular Expressions

RTILA allows to use FILTERS to add regular expressions.

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

![](https://legacy.rtila.com/wp-content/uploads/2023/03/image-16.png)

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:

![](https://legacy.rtila.com/wp-content/uploads/2023/03/image-17.png)

And create a Filter with the following Regular Expression:

(One|Two|Three|Four|Five)

![](https://legacy.rtila.com/wp-content/uploads/2023/03/image-18.png)

Check the results in the preview panel:

![](https://legacy.rtila.com/wp-content/uploads/2023/03/image-19.png)

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