Skip to content

Add Regex Find node#2855

Merged
joeyballentine merged 3 commits intochaiNNer-org:mainfrom
RunDevelopment:regex-find
May 17, 2024
Merged

Add Regex Find node#2855
joeyballentine merged 3 commits intochaiNNer-org:mainfrom
RunDevelopment:regex-find

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
@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