How to use Regular Expression in Stock Sync?
You can use regular expressions (RegEx) in Stock Sync to match and change text patterns in certain fields, such as removing a code from a product title or stripping commas from a description.
What Is a Regular Expression?
A regular expression is a pattern that matches text in a string, using special characters and words. For example, ([A-Z])\w+.
Fields That Support Regular Expressions
How to Test a Regular Expression
Use RegExr to test your pattern before you add it to Stock Sync.
Example: Remove a product code from the start of a title
Say you want to remove CBD6581-MI from the title CBD6581-MI Queen Sized Bed Frame - Charcoal Velvet. Test this expression in RegExr:
^[A-Z]+[0-9]+[-]+[A-Z]+[A-Z]+[ ]

This expression matches the code at the front of the title, CBD6581-MI, so it can be ignored.
Example: Remove commas from a description
Change this text:
HP Elitebook 840 G8, 14""FHD, i5-1135G7,8GB, 256GB SSD, LTE 4G
to this:
HP Elitebook 840 G8 14""FHD i5-1135G7 8GB 256GB SSD LTE 4G
Use this expression, and wrap it with *:
*^"|\,|"$*
Key Rules & Technical Details
- Wrap the expression: Wrap your regular expression with
*, as shown in the example above. - Test first: Check the pattern in RegExr on a few products before you run the full feed.
Troubleshooting Steps
- Issue: The expression does not change the text → Solution: Test the pattern in RegExr against the exact text in your feed, then check that the field is one of the supported fields.
- Issue: Too much text is removed → Solution: Narrow the pattern so it matches only the text you want to remove.
Good Articles to Continue
- Product Identifier Field → Learn how to set the identifier used to match products in your feeds.
- Description Field → Set up case conversion, find and replace, and paragraph formatting for descriptions.
- Tags Field → Map and format product tags in your feed.
Updated on: 16/11/2026
Thank you!
