Skip to content

Conversation

@jtydhr88
Copy link
Contributor

@jtydhr88 jtydhr88 commented May 6, 2025

String nodes, requested in RFC https://github.com/Kosinkadink/rfcs/blob/main/rfcs/0000-corenodes.md#string-nodes
Designed nodes:

  1. Concatenate, and input is:
  • string_a,
  • string_b
  • separator
    image
  1. Substring, and input is:
  • string
  • start
  • end
    image
  1. Length, and input is
  • string
    image
  1. Case Converter, and input is
  • string
  • mode, with options are ["UPPERCASE", "lowercase", "Capitalize", "Title Case"]
    image
  1. Trim, and input is
  • string
  • mode, with options are ["BOTH", "LEFT", "RIGHT"]
    image
  1. Replace, and input is
  • string
  • find
  • replace
    image
  1. Contains, and input is
  • string
  • substring
  • case_sensitive
    image
  1. Compare, and input is
  • string_a
  • string_b
  • mode, with options are ["StartsWith", "EndsWith", "Equal"]
  • case_sensitive
    image
  1. Regex Match, and input is
  • string
  • regex_pattern
  • case_insensitive
  • multiline
  • dotall
    image
  1. Regex Extract, and input is
  • string
  • regex_pattern
  • mode, with options are ["First Match", "All Matches", "First Group", "All Groups"]
  • case_insensitive
  • multiline
  • dotall
  • group_index
    image

@huchenlei huchenlei added the Core Core team dependency label May 7, 2025
@huchenlei huchenlei changed the title string node Add nodes for basic string operations May 7, 2025
@comfyanonymous comfyanonymous merged commit b7ed5f5 into comfyanonymous:master May 12, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Core Core team dependency

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants