Open jmeaster30 opened 1 year ago
In search section <expr> exists <variable>
will make <variable>
equal to 'true' if <expr>
is a non-empty match otherwise it will be 'false'
In replace section <variable> exists <expr>
will output <expr>
if <variable>
exists
Currently our variable captures the string value but they can't capture if the match exists or not.
I definitely want this in the replace result (after the with part) but it could be useful to do it right in the variable assignment in the search section.
Maybe use an
exists
keywordCould do
maybe 'error' exists wasError
or something