Hello,
I am retrieving a variable from Tasker via $br(tasker,Test)$.
Unfortunately, the retrieved value begins and ends with a ". It's already like that in tasker. Is there a way to remove the two characters at the beginning and end?
Hello,
I am retrieving a variable from Tasker via $br(tasker,Test)$.
Unfortunately, the retrieved value begins and ends with a ". It's already like that in tasker. Is there a way to remove the two characters at the beginning and end?
Hello,
Try this Text Converter formula, to get a substring from a text.
Use positive number for the 3rd parameter, to get substring from the beginning (left)
$tc(cut, "sOme tExT", 2)$
➞ it will return: sO
Use negative number for the 3rd parameter, to get substring from the end (right)
$tc(cut, "sOme tExT", -2)$
➞ it will return: xT
Hope this helps.
Hello,
I:m sorry for my previous comment, its not the exact solution to your issue.
Try using regular expression in Text Converter formula, to search both characters and replace it with empty string.
SYNTAX
$tc(reg, text, regexp, replacement)$
EXAMPLE
$tc(reg, br(Tasker. Test), "^"+tc(utf, "0022")+"|"+tc(utf, "0022")+"$", "")$
Notes
Hope this helps.