Messaging Gateway

 View Only
  • 1.  Regular Expression

    Posted Feb 08, 2010 03:26 PM
    I am trying to setup a regular expression to filter an account number.    I have this expression working 33[0-9]{5}.  I want to find this number only at a word boundary, so I have tried including \b and it still finds the numbers embedded in a longer string.   Can someone give me some guidance on how to do these following: find this pattern only if it is space delimited, preceded by a #, or followed by a "."   I have tried using some of the various RegEx testers on the web, and what works in them does not work in Brightmail.

    Thanks! 


  • 2.  RE: Regular Expression

    Posted Feb 08, 2010 06:15 PM
    Hi Jerry2786,

    I am not a regex expert, but the following regex seemed to work for my:
    (#|\s)33[0-9]{5}(\.|\s)
    Please let me know how it worked for you.

    Regards,

    Adnan


  • 3.  RE: Regular Expression

    Posted Feb 09, 2010 03:06 PM
    https://addons.mozilla.org/firefox/addon/2077
    http://gskinner.com/RegExr/


  • 4.  RE: Regular Expression

    Posted Feb 09, 2010 03:42 PM
    Hi phhowe17,

    Thanks for sharing the nice online RegEx testing tool; my test results with the tool were consistent with tests with SBG.

    Jerry, the regex I provided should work for you, but if it does not, please provide samples of what should and should not match the regex that you are looking for.

    Thanks

    Adnan



  • 5.  RE: Regular Expression

    Posted Feb 22, 2010 09:09 PM
    Hi Jerry,

    Did you get a chance to test the regex I provided?

    Any feedback would be appreciated.

    Thanks

    Adnan


  • 6.  RE: Regular Expression

    Posted Jul 28, 2010 02:23 PM
    The RegEx Coach is indispensable for working with RegEx.  Free ;-)

    http://www.weitz.de/regex-coach/