1 Reply Latest reply on May 22, 2008 6:50 AM by ericbelair

    Problem using REFind() to catch repeating characters

    ericbelair Level 1
      I've written the attached code to catch strings with characters that repeat at least 3 times. However, the regular expression does not seem to working correctly - both REFind() functions return 0. Can somebody assist me? I'm kinda new to RegEx.

      Thanks.
        • 1. Re: Problem using REFind() to catch repeating characters
          ericbelair Level 1
          Well, I think I found the solution to my problem. Don't know how to explain it, but it works. I think because I am backtracking to find repeating characters, I need to find occurrences of 2 repeating characters, since the third is the backtracked character.

          See attached solution. The alphanumeric check returns "8" (the first "P") and the non-alphanumeric check returns "3" (the first "%").