webMethods

webMethods

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.  Removing Special characters

    Posted Wed March 09, 2016 12:47 PM

    Hi All,

    I am trying to find a solution to remove all special characters possible and numbers from a string.

    For example: If a password has: abCdre@$!*123, then I need to remove all special characters and numbers. How can I accomplish it using regular expressions.

    Any inputs are much appreciated.


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


  • 2.  RE: Removing Special characters

    Posted Thu March 10, 2016 02:58 AM

    [color=blue]Kumar,

    You can use pub.string:replace with searchString as [^a-z_A-Z], useRegex to true ; no need to give any value for replaceString.[/color].

    -Ambrish-


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


  • 3.  RE: Removing Special characters

    Posted Thu March 10, 2016 11:17 AM

    Thanks Ambrish, I googled it and tried and many suggested the samething. Thanks for the response.


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


  • 4.  RE: Removing Special characters

    Posted Fri March 11, 2016 01:56 AM