IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  How do I remove "\" from a string

    Posted 06/09/21 04:59 AM

    Hi, I’m trying to remove the new line character ‘\’ from a _generatedInput document that has been converted to json.

    String replace always seems to change the ‘\’ to ‘\\’ which means the new line is never removed?

    Using 10.1


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 2.  RE: How do I remove "\" from a string

    Posted 06/09/21 09:27 AM

    Please share the string (or an example) and the step(s)/code being attempted to remove the character.

    FYI, “\” is not a new-line. The typical escape sequence for a newline char (0x0a) is “\n”. EDIT: but perhaps the forum processing clobbered your post?

    You likely should remove the character from the source data before creating the JSON string, if that is necessary. Out of curiosity, why does the newline character need to be removed?


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods