Regex Support in Ticket Criteria Matching

Regex Support in Ticket Criteria Matching

Rocketship now supports regular expressions (regex) for matching ticket titles. Regex gives you more control when defining match rules — you can match patterns instead of exact words.

This allows you to automatically group, escalate, or schedule tickets based on more flexible title patterns.

Common Regex Patterns

Word Boundaries

Use \b to match a whole word and avoid partial matches.

Regex:

\bWORD\b

Matches:

WORD

Does not match:

WORDLESS
MYWORD

Digits

Use \d to match numbers.

Regex:

\d+

Matches:

Ticket 123
Error 42

Does not match:

Ticket ABC

Whitespace

Use \s to match spaces, tabs, or line breaks.

Regex:

Task\sComplete

Matches:

Task Complete

Does not match:

TaskComplete

Start and End of Line

Use ^ to match the start of a title, and $ to match the end.

Regex:

^Urgent$

Matches:

Urgent

Does not match:

Urgent Ticket

Zero or More

Use * to match zero or more of the previous character.

Regex:

Hel*o

Matches:

Heo
Helo
Hello

One or More

Use + to match one or more of the previous character.

Regex:

Hel+o

Matches:

Helo
Hello
Helllo

Does not match:

Heo

Example

To match only ticket titles that start with “Error” followed by a space and a number:

Regex:

^\bError\s\d+\b$

Matches:

Error 404

Does not match:

Critical Error 404

Tip

You can test regex patterns on sites like regex101.com before adding them to your rules.