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.

 View Only
  • 1.  Alpha or numeric

    Posted Tue December 30, 2003 04:45 PM

    In Developer, does anyone know how to test a character and determine whether it’s numeric?


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


  • 2.  RE: Alpha or numeric

    Posted Tue December 30, 2003 05:11 PM

    have a look in the PSUtilities package (can be downloaded from Advantage), it contains a PSUtilities.string:isNumeric service

    hth

    graham


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


  • 3.  RE: Alpha or numeric

    Posted Wed December 31, 2003 07:13 PM

    if you don’t want to use PSUtilities, you can use a branch and regular expressions:

    branch on /instring
    /[1]$/
    /[2]+$/

    The first expression (which would appear in the label on the branch step, and would include the slashes) will match a string which contains exactly one digit.

    The second expression will match a string which is composed of nothing but digits.

    For those unfamiliar with regular expressions, the second one above can be translated as

    match any string beginning with (specified by the ^) one or more (specified by the +) characters falling in the range of 0-9 (specified by [0-9]) followed by the end of string (specified by the $).


    1. 0-9 ↩︎

    2. 0-9 ↩︎


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