Test Data Manager

Expand all | Collapse all

@replace()@ in datamaker

  • 1.  @replace()@ in datamaker

    Posted Feb 20, 2018 02:36 PM

    Hi,

     

    Please help me to find a way to replace comma in my string with pipe '|' using data maker

     

    ~variable~=prince,munjal

    @replace(~variable~,',',|)@

     

    I tried all possible ways using double quote... Let me know if there a special handle for comma string



  • 2.  Re: @replace()@ in datamaker
    Best Answer

    Broadcom Employee
    Posted Feb 20, 2018 02:48 PM

    Please try the below

     

    @replace("~variable~",",",|)@



  • 3.  Re: @replace()@ in datamaker

    Posted Feb 21, 2018 10:27 AM

    Hi Prince, were you able to try Anil's suggestion? 



  • 4.  Re: @replace()@ in datamaker

    Posted Feb 21, 2018 02:09 PM

    Yes, it worked and was helpful