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.

1 Answer 1

8

Syntax:

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

Usage:

\StrSubstitute{\temp}{.}{-}[\mystart]
1
  • I must be blind. Shame on me :) Commented Apr 22, 2011 at 15:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .