Mohammad, I am at my desk this time,
I am not sure why you are doing this? as in this case you are passing to the macro an intentionally quoted string? In some ways a minimal solution would be \define removequotes(item) <<__item__>> \end <<removequotes 'single quotes'>> <<removequotes "double quotes">> I have the following working which defaults to currentTiddler rather than throwing an error. Except it fails if current tiddler has double Quotes \define remove-quotes(item) <$set name="item" value=<<__item__>> emptyValue="""$(currentTiddler)$""" > <$list filter="""[<item>removeprefix["]removesuffix["]] [<item>removeprefix[']removesuffix[']]"""></$list> </$set> \end <<remove-quotes "'single quotes'">> <<remove-quotes '"double quotes"'>> <<remove-quotes>> Given your solution, how are you planning to use it? What is the source of the titles with Quotes in their name?. Regards Tony On Friday, 21 December 2018 00:19:26 UTC+11, Mohammad wrote: > > Hi Tony! > I was looking to see if there is a shorter and more efficient solution. > > The Else is used here to handle two cases of failure: if the input is > empty! and if the input has no surrounding quotes! > > -Mohammad > > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/bb213bb1-4a6c-4ae6-98e4-21e98f44a022%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

