Mohammad,

The use of Quotes is common, and they are removed by a number of processes, 
and can be implied. If you wanted a minimal way, perhaps this is it.

\define remove-quotes(item) <$set name=string value=$item$><<string>></$set>


<<remove-quotes "'single quotes'">>
<<remove-quotes '"double quotes"'>>
<<remove-quotes 'single quotes'>>
<<remove-quotes "double quotes">>
<<remove-quotes single-quotes>>
<<remove-quotes double quotes>>
<<remove-quotes """double quotes""">>
<<remove-quotes ""double quotes"">>

Try the above and observe which work, but your test cases do work

Tony


On Friday, 21 December 2018 16:17:24 UTC+11, Mohammad wrote:
>
> Hello Tony,
>  Actually my code is part a bigger code, in that code a quoted string is 
> passed to be looked up in a dictionary tiddler and having those quotes 
> cause problem.
> I need to have an un-quoted key! One way is to use the first solution you 
> proposed, the other is what I sent here!
>
> I thought the second solution is better as it make sense and is the 
> semantic way of doing this!
>
> --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/b1037f64-48ab-4067-8417-686a8f301c39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to