Re: [NTG-context] \doifinstring: strange characters on the output

2021-11-02 Thread Tomas Hala via ntg-context
Hi Hans, ok, thank you, lmtx is a good way. Tomáš > I would like to ask what is the cause of this behavior and how to > use the \doifinstring to prevent the "fbf@" on the output. partial expansion of a protected macro where one doesn't expect it before i patch i let wolfgang check it btw, you

[NTG-context] \doifinstring: strange characters on the output

2021-10-31 Thread Tomas Hala via ntg-context
Hi all, I noticed that \doifinstring produces quite strange output if a command follows immediately (or with any amount of spaces) after the substring I am searching for: -MWE \starttext \def\xxx{asdf \bf Z:\bf asdf} % strange \def\xxx{asdf \bf Z:

Re: [NTG-context] getting path and filename from url

2021-08-27 Thread Tomas Hala via ntg-context
Hi Pablo, is the following what you need? context("1. " .. url:match ".+/") context("2a. " .. url:match "[^/]+/.+[.]") -- path and name with period --context("2b. " .. url:match "[^/]+[^.]+$") -- name with period and extension context("2c. " .. (url:match "[^/]+[^.]+$") :match