6

I have a macro, say defined as follows:

\edef \temp{A.input 1}

I want to replace the dot with hyphen and have the result being stored in \mystart. Something like that:

\edef \mystart{\StrSubstitute{\temp}{.}{-}}

\show \mystart should ouput A-input 1.

I've messed up with many variants, but none of them works.

7

Syntax:

\StrSubstitute[<number>]{<string>}{<stringA>}{<stringB>}[<name>]

Usage:

\StrSubstitute{\temp}{.}{-}[\mystart]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.