KAPOW

Would you like to react to this message? Create an account in a few clicks or log in to continue.
KAPOW

Welcome to the Kapow forum. Here you can get help, use your skills to help others and enjoy hanging out in the company of other Kapow Robot Developers.


    Kapow Device Automation Replace Spaces with underscores

    avatar
    buddhikadce


    Posts : 3
    Points : 1983
    Join date : 2018-12-10

    Kapow Device Automation Replace Spaces with underscores Empty Kapow Device Automation Replace Spaces with underscores

    Post by buddhikadce Thu Feb 07, 2019 11:19 am

    Hi friends,

    Can i know how to replace text spaces with underscores??

    (kapow Document.xls) this is my original text. It's extracted value. I need to convert that document name to (kapow_Document.xls).
    I used the replace text expression like this. 
    replaceText(FileName, "_", " ")

    FileName- the variable.

    Above Expression is not working with device automation assign variable step. Can I know what is the correct format of this??

    Thank you.
    avatar
    buddhikadce


    Posts : 3
    Points : 1983
    Join date : 2018-12-10

    Kapow Device Automation Replace Spaces with underscores Empty Re: Kapow Device Automation Replace Spaces with underscores

    Post by buddhikadce Thu Feb 07, 2019 11:37 am

    Friends, 
    I found the solution for this.
    replaceAll($extract, " ", "_")
    $extract  is the variable that used for assign the extarcted value.

      Current date/time is Thu May 09, 2024 5:49 am