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.  Need held regarding pubstringreplace

    Posted 07/31/03 02:57 AM

    Hello

    I have a question regarding the built in function pub.string:replace.

    Is it possible to map several characters to searchString? For example, say I want to search a character string for X and Y, and replace any occurance of those two characters with Z. How can I do this?

    Is there a delimiter/separator that one can insert inbetween X and Y in the searchString input area in order to make this possible?

    Please let me know when given the chance.

    Thanks.


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


  • 2.  RE: Need held regarding pubstringreplace

    Posted 07/31/03 09:00 AM

    Christopher,
    Try searchString as [x,y]
    replaceString as z

    and set the useRegex as True

    That should solve ur issue…

    HTH
    Bhavani Shankar

    Note : I have tried this in wM4.6 and it has worked.


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


  • 3.  RE: Need held regarding pubstringreplace

    Posted 07/31/03 09:05 AM

    FYI, “Replace is case sensitive”

    In case u need to change X or Y or x or y to say z,
    make the searchString as [x,y,X,Y]…

    Bhavani Shankar


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