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.  Regular Expression

    Posted 11/02/10 03:37 AM

    Hi All,

    I am trying to use a regular expression in a trigger filter. My requirement is that it can have multiple spaces in a field. I was trying the following which is not working. can anyone please tell me a good regular expression for me to use. (%var% /“^ *$”/)

    Thankyou…


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


  • 2.  RE: Regular Expression

    Posted 11/22/10 11:56 PM

    if u r getting only the spaces… then remove the spaces using replace service in wmpublic package and have a string in filter with no spaces in it… just a thought.


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


  • 3.  RE: Regular Expression

    Posted 11/23/10 01:17 AM


  • 4.  RE: Regular Expression

    Posted 11/23/10 03:11 PM

    Rob, yes triggers do support regex, but disadvantage is the filter condition will be on the IS and not Broker.

    for matching one or more spaces / +/

    –regards
    DC


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


  • 5.  RE: Regular Expression

    Posted 12/01/10 02:09 PM

    Are you sure ?

    I have a trigger with a filter with

    Reference = /^XXXX.*/

    in Developer,
    and it appears has

    regexpMatch(Reference ,"^XXXX.*")

    in the filter of the Broker.

    I’m still using IS 6.5.


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


  • 6.  RE: Regular Expression

    Posted 12/01/10 08:03 PM

    Thanks!!

    It’s my mistake. Actually, not all regex conditions are valid in Broker. Those regex conditions invalid in Broker will be in IS Level. developer guide lists the regex not accepted in broker

    -regards
    DC


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


  • 7.  RE: Regular Expression

    Posted 12/08/10 04:24 PM

    The ‘^’ signifies the beginning of the string and the ‘$’ signifies the end of the string. So the above regex only matches something that is ALL spaces.

    / */ will do 0 or more spaces
    / +/ will do 1 or more spaces (as pointed out already)


    http://webmethodssag.blogspot.com


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