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 help with regular expression!

    Posted 06/23/09 05:32 PM

    Hi,

    i need a pattern to find a filename with 36 characters length.
    I learned that pattern is not equal to regular expression!

    I did something like {0,35} but it did not work.

    I want to poll files like SX8010RFBILA01bis162009_20090618.txt

    When a file like SX8010RFBILA01bis162009_20090618Z.txt appears in the monitoring directory, the file should be ignored.

    So the pattern could also look something like *anyNumber.txt
    to see if the last char before .txt is a number.

    I need this for setting the file name filter in File Polling Listener Configuration (administration).

    I really appreciate your help.

    Thanks.


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


  • 2.  RE: Need help with regular expression!

    Posted 06/23/09 09:33 PM

    Sharma,

    “i simply need a regular expression to find a filename with 36 characters length.”

    Use the service Pub.String:length service with the input as the file name and and you will get the length of the filename.


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


  • 3.  RE: Need help with regular expression!

    Posted 06/24/09 07:48 AM

    Thanks, but i can’t use your solution because i have to put in a patterninto the field “file name filter” which is in administration under ports and file polling. I want only specific files to be polled from the folder.

    Sorry first I thought it is the same like regular expression.

    Do have any ideas for that.


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


  • 4.  RE: Need help with regular expression!

    Posted 06/24/09 08:43 AM

    I found this in a previous thread.

    This KB article on Advantage discusses the regex supported by the file polling port:
    [URL=“https://advantage.webmethods.com/advantage?targChanId=kb_home&oid=1613386882”][COLOR=#22229c]https://advantage.webmethods.com/adv...oid=1613386882[/color][/URL]

    That article refers to a link that describes the class that the file polling port uses for regex handling:
    [URL=“http://jakarta.apache.org/oro/api/or...bCompiler.html”][COLOR=#22229c]http://jakarta.apache.org/oro/api/or...bCompiler.html[/color][/URL]

    So it is not regular expression.

    Still have to find a solution (pattern) for my todo.


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


  • 5.  RE: Need help with regular expression!

    Posted 06/24/09 09:02 AM

    I found a solution.

    I use the following pattern: *[0123456789].txt


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