I’m trying to tabfind a row named: t[xyz]
but it always returns -1
bug?
tabfind.toe (4.17 KB)
I’m trying to tabfind a row named: t[xyz]
but it always returns -1
bug?
tabfind.toe (4.17 KB)
yeah, its a bug. t[xyz] basically translates to searching for tx, ty or tz. I have a fix so you can put in t[xyz] to escape the brackets. look for it in the next release.
Selina
Hi Selina,
I don’t think I’ll be able to escape the brackets in my particular case.
Is there maybe a way you can make it work when wrapping it in single quotes (which we usually use when stuff should not be expanded)?
‘t[xyz]’
or would maybe wrapping it in noevals() work?
noevals(t[xyz])
Thanks
Achim
By the way, the same happens if you put t[xyz] in the select DAT rownames parameter
the problem in select DAT rownames parameter will be solved in the same fix, via
using a .
the basic issue is that we use a simple pattern matching search that looks for *?[], so the only way to search for these characters is to escape them with a .
can you use t[xyz] in a substitute command for now?
Selina
For some reason I need to double escape the [ character
`substitute(substitute("t[xyz]","]","\]"),"[","\\[")`
but that should work. thanks selina
that’s a bit odd, but I’ll mark it as a low priority thing to look at.
Selina