Messaging Gateway

 View Only
  • 1.  Regular Expression - Maximum number of matches

    Posted Mar 10, 2016 05:18 PM

    Hello Folks,

    I've recently added a regex to our system to flag messages with numbers those contain 10 digits.

    \b^[0-9]{10}$\b appears to work well for this - but up to 40 matches. When there's more than 40 items inside a message, the pattern doesn't work. How - do you think - should I go ahead with making this work for messages with more than 40 matching items? What am I missing?

    Thanks.



  • 2.  RE: Regular Expression - Maximum number of matches

    Posted Mar 15, 2016 10:37 AM

    Hi,

    I havent heard or seen this behaviour but have you tried to change the regex because \b and "^$" does not really make sense to me.

    In case one you are searching for words, 2nd you'll search start to end of line.

    Thomas