# Feed Conditions: Match regex

LitCommerce Feed Management offers multiple rules when setting up your feed, enabling you to locate, modify, and optimize your product data for the target platform.

This article introduces you to the “Match regex” condition.

## <mark style="color:$primary;">**Set up and apply**</mark>

For more details on how to set up and apply the rule, refer [HERE](https://litcommerce.gitbook.io/litcommerce-helpdesk/feed-management/feed-basics-and-setup/feed-setup/feed-create-and-set-up-your-feed/feed-rules).

## <mark style="color:$primary;">**How It Works**</mark>

Regex (short for Regular Expression) is a pattern-based search language used to find, match, or replace text that follows a specific format. You can define the format using symbols or codes to instruct the system which text to match.

The “Match regex” condition appears under the If, And, and Or-statements for fields that contain text data. It lets you use regex to find products that match specific text patterns in your product data.

<figure><img src="/files/ItSwU80Zo6rLLybsEo2v" alt=""><figcaption></figcaption></figure>

This rule is ideal for users familiar with regex who need advanced product search capabilities, such as finding multiple variations of a keyword in a single search.

**Example:** You would like to locate products with titles that contain the word “Pink” followed by “Base” at the end for further editing. The following condition can be set:

If “Product Title” - “matches regex” - “\bPink\sBase\b”.

<figure><img src="/files/9gu1OvbHfCqsfhtln7x8" alt=""><figcaption></figcaption></figure>

This will detect all products that match the set text pattern.

<figure><img src="/files/uW70ERGviY7cWn5rzXqd" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
**Use the rule “doesn’t match regex” to take the opposite effect.**
{% endhint %}

<figure><img src="/files/0GofWqxTOpaZ1WA6YZh6" alt=""><figcaption></figcaption></figure>

If you have any questions, let us know via the Chat Box in the bottom-right corner of our Help Center.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.litcommerce.com/feed-management/feed-basics-and-setup/feed-setup/feed-create-and-set-up-your-feed/feed-rules/feed-conditions/feed-conditions-match-regex.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
