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.


#TechXchangePresenter
 View Only
  • 1.  Regular expression

    Posted Mon February 06, 2017 06:17 AM

    Hi ,

    I would like to branch on variable ‘a’ if ‘a’ contains whole string “following has been assigned”.
    How can I achieve this.
    Please suggest.

    Thanks,
    Monica


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Regular expression

    Posted Mon February 06, 2017 06:59 AM

    Hi,

    Contains can be checked using //.
    Ex. %a% == /following has been assigned/

    Thank you.


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Regular expression

    Posted Mon February 06, 2017 11:23 AM

    Yes, that’s how regex work. It will match not only whole string, it will also match a word (eg. following) in the sentence. Correct me if my understanding is wrong.


    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Regular expression

    Posted Tue February 07, 2017 04:40 AM

    Hi Mahesh,

    It will match whole string “following has been assigned” not part of it.

    Ex: following has been assigned - TRUE
    following has been assigned:abc - TRUE
    following - FALSE


    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: Regular expression

    Posted Tue February 07, 2017 05:17 AM

    Yes, you are correct. My bad :frowning:


    #webMethods
    #Integration-Server-and-ESB