Need Help with Regular Expressions?
We’re here to help!
If you're not familiar with Regular Expressions (Regex) or simply prefer hands-on assistance, we offer free setup support and error monitoring. Just reach out to us at regex@knots.io — we’re happy to jump on a call or support you via email.
New to Regex?
Check out our Beginner’s Guide to Regex in Zendesk for an easy walkthrough on how regular expressions work and how to use them effectively in your workflows.
Recommended Tool for Testing
We recommend using regex101.com to test your regular expressions.
Please make sure to set the Flavor to ECMAScript (JavaScript) to match how patterns work in our app.
Useful Regular Expression Patterns
These examples work well when the data follows a consistent pattern. If you’re unsure, just email us — we’re happy to help.
Extract a whole line after a specific field label
This captures everything after a label like FIELD NAME: until the end of the line.
(?<=FIELD NAME:\s*).+
Extract a value between two field labels
This pattern grabs the content that appears after FIELD NAME: but before FIELD NAME 2:.
(?<=FIELD NAME:\s*).+(?=FIELD NAME 2:)
Match a 9-digit number
Perfect for extracting values like social security numbers, IDs, or similar.
\d{9}
Match a number with 4 to 9 digits
This helps catch numbers of variable lengths within a set range.
\d{4,9}
Still stuck? Let us help.
Even if you're unsure how to describe the pattern you're trying to match, send us a sample via regex@knots.io and we’ll take it from there!
Comments
0 comments
Please sign in to leave a comment.