Skip to content

Output from Regex Find All Usage #22

@Oninaig

Description

@Oninaig

Right now, Regex Find All outputs a list of matches. For example, I might have (, $primcolor=!blue, $seconcolor=!yellow in my prompt, and I can use Regex Find All to extract those with \$(\w+)=\!(\w+).

However, even though the output of the node is listed as STRING, it is outputting a list. This list doesn't seem to be compatible with any other type of input that would accept a type of list. In my specific example, my output looks like this:

Image

The goal here is to somehow loop over that list in such a way that I go back to my original prompt and replace any instances of $primcolor with "blue" and any instances of $seconcolor with "yellow."

How exactly do you use the output of the regex find all node?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions