Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Regex Find node #2855

Merged
merged 3 commits into from
May 17, 2024
Merged

Conversation

RunDevelopment
Copy link
Member

This adds the Regex Find node, a simple node that just executes a regex and returns the first match.

image

To make this node more powerful, I also added a text pattern option that allows users to use a text pattern to access the capturing groups of the match.

image

This should be enough to do some basic parsing for things like file names.


Other changes:

  • I also improved regexReplace to return never for more combinations of invalid inputs.

@joeyballentine
Copy link
Member

Nice!

@joeyballentine joeyballentine merged commit a35163c into chaiNNer-org:main May 17, 2024
17 checks passed
@RunDevelopment RunDevelopment deleted the regex-find branch May 17, 2024 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants