Skip to content

eval replacere fails to update regex vars if gosub'd #53

@HanryuDR

Description

@HanryuDR

After a gosub that sends variables so that ($1,$2,etc) are updated, if you try to replacere those regex vars will not update

debug 5

gosub tst 1 1 1
exit
tst:
var DRWordle.PruneWordBank.IterateWords.word DARJE
var DRWordle.PruneWordBank.IterateWords.Pos.index 0
eval hanVAR replacere("%DRWordle.PruneWordBank.IterateWords.word", "(\w)", "$1|")
var DRWordle.PruneWordBank.IterateWords.Pos.Loop.wordChar %hanVAR[%DRWordle.PruneWordBank.IterateWords.Pos.index]
echo **%DRWordle.PruneWordBank.IterateWords.Pos.Loop.wordChar**
return

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions