1 Reply Latest reply on Aug 24, 2020 8:21 AM by user126898

    How to replace all characters with Asterisks (*) except the first character of a given string?

    Sandip Mondal New Member


      I am trying to mask a string with asterisks (*) except the first character.

      For example,

      Input: India, Output: I****

      Input: Australia, Output: A********


      I tried the below RPAD expression but it is throwing the "RPAD: Operand Not Constant Error" for the Length function--

      RPad(Substr(CountryName, 1, 1),Length(CountryName),'*')


      Can you please help