Author Topic: RegEx for number pattern patching  (Read 246 times)

CorvusPrime

  • New Member
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
RegEx for number pattern patching
« on: May 09, 2012, 10:33:13 AM »
I am looking for a preg_match expression that will find recurring patterns in a space delimited list of 1-2 digit numbers.

New to regex and trying to get my head around this so I can do it lucidly in the future.

CorvusPrime

  • New Member
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: RegEx for number pattern patching
« Reply #1 on: May 09, 2012, 11:40:56 AM »
BTW: I have tried the following:

/[0-9]{1,2} [0-9]{1,2} [0-9]{1,2}/\1+

And what I get is an error about unknown modifier in reference to the final \1+