Actions132
- AI Actions
- Extract Text From Document
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Extract Entities
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate JavaScript Code
- Generate Python Code
- Detect Language
- Detect Mood
- Extract Text From PDF
- Recognize Objects in Image
- Extract Text From Image
- Redact Sensitive Information From PDF
- Remove Background Image
- Summarize Text
- Transcribe
- Translate Text
- Image Actions
- Business Actions
- Convert Actions
- Generate Actions
- Crypto Actions
- Operator Actions
- Storage Actions
- Scheduler Actions
- Text Actions
- Chart Actions
- Code Actions
- Calculate Actions
- Date and Time Actions
- PDF Actions
- Compress PDF File
- Count PDF Pages
- Create Empty PDF
- Decrypt PDF
- Convert DOCX to PDF
- Draw Image on PDF
- Draw Text on PDF
- Encrypt PDF
- Convert HTML to PDF
- Convert Markdown to PDF
- Manage PDF Metadata
- Merge PDF Files
- Add PDF Pages
- Remove PDF Pages
- Resize PDF Pages
- Rotate PDF Pages
- Convert PDF to Base64
- Convert PDF to Image
- Split PDF File
- Add Image Watermark to PDF
- Add Text Watermark to PDF
- Shortened URL Actions
Text → Regular Expression
AI-generatedOverview
The node provides a "Regular Expression" operation under the "Text" resource, allowing users to evaluate a given text against a specified regex pattern. This is useful for extracting patterns, validating formats, or searching within text data in workflows without writing custom code.
Practical examples include:
- Validating email addresses or phone numbers.
- Extracting specific substrings like hashtags or URLs from social media posts.
- Filtering or routing data based on pattern matches.
Properties
| Name | Meaning |
|---|---|
| Text | The input text string that will be evaluated against the regular expression pattern. |
| Expression | The regular expression pattern used to match against the input text (e.g., [a-zA-Z0-9]+). |
Output
The output JSON contains the result of applying the regular expression to the input text. Typically, this includes matched substrings or boolean indicators of whether a match was found. The exact structure depends on the API response but generally provides the matching segments or match details.
No binary data output is indicated for this operation.
Dependencies
- Requires an API key credential for authentication with the external 0CodeKit service.
- The node sends a POST request to the
/text/regexendpoint of the 0CodeKit API with thetextandexpressionparameters. - The base URL for requests is
https://prod.0codekit.com. - Proper network access and valid credentials are necessary for successful execution.
Troubleshooting
Common issues:
- Invalid or malformed regular expressions may cause errors or no matches.
- Empty or missing input text or expression properties will likely result in errors.
- Network or authentication failures if the API key is missing or invalid.
Error messages:
- Errors related to regex syntax should be resolved by verifying the pattern correctness.
- Authentication errors require checking the API key configuration.
- Timeout or connectivity errors suggest network issues or API downtime.
Links and References
- Regular Expressions (MDN Web Docs)
- 0CodeKit API Documentation (for detailed API usage and endpoints)