Extensions/ComfyUI_StringOps
ComfyUI Extension

ComfyUI_StringOps

StringOps is a versatile text processing toolkit built for ComfyUI's node-based workflows

By MeeeyoAI·Created 2 years ago·Updated about a year ago· 209
MeeeyoAI/ComfyUI_StringOps
Nodes62
On cloudLocal install
CategoryMeeeyo/String, Meeeyo/Number
Stars209
Updatedabout a year ago

Nodes (62)

添加前后缀🐠meeeyo.com

Wrap any string in a prefix and suffix — the two-field wrapper

Meeeyo/String
段落每行添加前后缀🐠meeeyo.com

Prefix and suffix every line of a block — formatting lists in bulk

Meeeyo/String
批量替换字符🐠meeeyo.com

Run a whole dictionary of text replacements in one pass

Meeeyo/String
判断是否包含字符🐠meeeyo.com

Does this text contain that string? Returns 1 or 0, ready to route on

Meeeyo/String
比较数值🐠meeeyo.com

Classify a number as small, medium, or large — then route on the label

Meeeyo/Number
判断返回内容🐠meeeyo.com

Pick one of two strings based on a substring check

Meeeyo/String
文本出现次数🐠meeeyo.com

Count how many times a string appears — as both a number and text

Meeeyo/String
裁剪图像🐠meeeyo.com

Crop an image and its mask in lockstep, so inpainting never misaligns

Meeeyo/File
解码预览🐠meeeyo.com

VAE-decode to a preview — and still keep the image on the wire

Meeeyo/Functional
段落提取指定索引行🐠meeeyo.com

Pull a range or a set of lines and rejoin them into one string

Meeeyo/String
提取前后字符🐠meeeyo.com

Grab everything before or after a marker — first or last occurrence, your call

Meeeyo/String
文本拆分🐠meeeyo.com

Slice a block of text into five named chunks in one node

Meeeyo/String
提取多层指定数据🐠meeeyo.com

Two mini-languages for pulling structured data out of text

Meeeyo/String
提取特定行🐠meeeyo.com

Pull exact lines out of a block by position — with a bonus combined output

Meeeyo/String
提取标签之间🐠meeeyo.com

Pull the text trapped between two labels — the tag-between extractor

Meeeyo/String
按数字范围提取🐠meeeyo.com

Cut a string by character range instead of guessing a regex

Meeeyo/String
文件操作🐠meeeyo.com

Copy or move files from inside a workflow — with a status string instead of a crash

Meeeyo/File
清理文件🐠meeeyo.com

Clean out your ComfyUI output folder from inside a workflow — carefully

Meeeyo/File
从路径加载🐠meeeyo.com

List every file in a folder by extension — full paths, count, and a list, all at once

Meeeyo/File
替换文件名🐠meeeyo.com

Rename in your graph without touching the disk — it builds the new path, you decide what to do with it

Meeeyo/File
段落提取或移除字符行🐠meeeyo.com

Keep or drop lines by keyword — grep, but inside your workflow graph

Meeeyo/String
段落字数条件过滤行🐠meeeyo.com

Keep only the lines that are the right length — a dumb filter that's quietly great

Meeeyo/String
查找表格数据🐠meeeyo.com

Search an Excel sheet from inside a workflow and get the cell's row and column back

Meeeyo/File
指定字符行参数🐠meeeyo.com

Scan lines for a marker and return everything after it on that line

Meeeyo/String
规范数值🐠meeeyo.com

Stop fighting ComfyUI over int vs float — round, ceil, floor, or snap to 32

Meeeyo/Number
生成范围数组🐠meeeyo.com

Build a padded number list for batch queues without math nodes

Meeeyo/Number
视频指令词模板🐠meeeyo.com

One node that turns a plain scene description into a cinematic video prompt

Meeeyo/String
全能加载图像🐠meeeyo.com

Load an image from a path, a URL, or a base64 blob — one input, same IMAGE out

Meeeyo/File
当前时间(戳)🐠meeeyo.com

A live clock in your graph — and the pack's built-in 'random' seed trick

Meeeyo/Functional
获取浮点数🐠meeeyo.com

The text-to-float bridge for config lines and batch output

Meeeyo/String
获取整数🐠meeeyo.com

Find the line that contains your key and hand back the int value on it

Meeeyo/String
范围内随机数🐠meeeyo.com

A random number node that re-rolls every single run — that's the point

Meeeyo/Number
重置图像🐠meeeyo.com

One node to resize any image to a sane, model-friendly size — and hand you back width and height

Meeeyo/File
图像层叠加🐠meeeyo.com

Stack two images with alignment, scale, and opacity — watermark and composition in one node

Meeeyo/File
加载重置图像🐠meeeyo.com

One node that loads an image, resizes it, and hands you a mask

Meeeyo/File
多参数输入🐠meeeyo.com

Four inputs, four outputs, zero processing — the pass-through node

Meeeyo/String
整数参数🐠meeeyo.com

Turning a '2|3' string into two usable integers

Meeeyo/String
常规处理字符🐠meeeyo.com

One node to clean every prompt before it hits the text encoder

Meeeyo/String
随机行内容🐠meeeyo.com

The wildcard-style random prompt picker, without the wildcard plugin

Meeeyo/String
读取表格数据🐠meeeyo.com

Reading cells out of an .xlsx and into your workflow

Meeeyo/File
读取表格数量差🐠meeeyo.com

How many filled cells are in that row? This node counts and diffs them

Meeeyo/File
读取页面🐠meeeyo.com

It's called 'read page' but it actually phones home to the author's server

Meeeyo/Functional
删除标签内的内容🐠meeeyo.com

Strip everything between two characters — parens, brackets, tags, gone

Meeeyo/String
多次出现依次替换🐠meeeyo.com

Replace the same string N times — each time with a different value

Meeeyo/String
替换第n次出现🐠meeeyo.com

Replace only the 3rd 'X' — or every one, if you set it to 0

Meeeyo/String
保存图像🐠meeeyo.com

Save images to any folder you want — and get the image back out

Meeeyo/File
选择参数🐠meeeyo.com

A gender + orientation picker that outputs '1+1' — and probably isn't for you

Meeeyo/Functional
随机打乱🐠meeeyo.com

Randomize your lines, fresh every single run

Meeeyo/String
随机整数🐠meeeyo.com

A random seed you can actually wire in — string and int, fresh every run

Meeeyo/Functional
简易文本替换🐠meeeyo.com

The boring find-and-replace node you'll reach for constantly

Meeeyo/String
文本输入🐠meeeyo.com

A text input node with zero processing. Yes, that's the whole thing.

Meeeyo/String
按序号提取分割文本🐠meeeyo.com

Grab the nth piece of a delimited string — forward or backward

Meeeyo/String
分隔符拆分两边🐠meeeyo.com

Split a string in two at the first delimiter you give it

Meeeyo/String
重置尺寸(meeeyo.com)

Snap your resolution to a small/medium/large preset in one step

Meeeyo/Image
文本组合🐠meeeyo.com

Rules with [1] [2] placeholders, up to five outputs

Meeeyo/String
文本拼接🐠meeeyo.com

Join up to four strings in any order you like — not just 1+2+3+4

Meeeyo/String
文本按条件判断🐠meeeyo.com

Turn 'is this prompt good enough' into a clean 0 or 1

Meeeyo/String
文字图像🐠meeeyo.com

Turn text into an image — with working Chinese font support out of the box

Meeeyo/File
文本到列表🐠meeeyo.com

Turn a multiline box into a real STRING list — clean and empty-line-free

Meeeyo/String
写入表格数据🐠meeeyo.com

Write your workflow's output back into an .xlsx, row by row

Meeeyo/File
图片插入表格🐠meeeyo.com

Embed Generated Images Into Excel Cells Without Leaving ComfyUI

Meeeyo/File
文本写入TXT🐠meeeyo.com

Log Prompts and Metadata to a TXT File in 30 Seconds

Meeeyo/File
Readme

ComfyUI_StringOps

Efficient Text Processing Tool for ComfyUI Workflow

ComfyUI_StringOps is an advanced text processing tool tailored for the ComfyUI workflow, offering robust text manipulation capabilities to address core issues such as text preprocessing, data transformation, and batch automation, enabling efficient and precise operations.

  • Batch Replacement: Supports partial or global batch replacement of strings for rapid text processing and delivery to subsequent processes, enhancing task efficiency.

  • Intelligent Splitting/Concatenation: Splits text based on character counts and delimiters, and supports flexible recombination of multiple text segments to meet complex processing needs.

  • Precise Extraction: Accurately extracts specified content from text using positional indexing and keyword matching, providing precise data support for subsequent processes.

  • Integration with Excel: Achieves deep integration with Excel, supporting read and write operations on paged and tabular data, facilitating batch completion of complex tasks and significantly improving efficiency.

Update Notes (2025-06-05):

1.Added LoadAndAdjustImage node to load and resize images.

2.Added SaveImagEX node to save images to a specified directory (also added an image output port).

3.Added functionality to get the current timestamp (can be used as a random seed).

4.Added the ability to copy and cut files.

5.Added the feature of reading web page content.

6.Added text layout to image node, image layer overlay node.

Partial Node Display

Text Processing Node image
image
image
image
image

Table Data Read/Write Nodes image

ComfyUI_StringOps excels in handling prompts within workflows, especially in organizing and optimizing them, thereby significantly enhancing efficiency and accuracy.

Install

cd ComfyUI/custom_nodes

git clone https://github.com/MeeeyoAI/ComfyUI_StringOps.git

Or download the zip file and extracted, copy the resulting folder to ComfyUI\custom_nodes Restart ComfyUI.

More Info

bilibili: https://space.bilibili.com/3546690300676691

Website: http://www.meeeyo.com

Sponsorship: https://t.zsxq.com/ufSS2

WeChat: meeeyo

image