Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Help!!!

Last post 06-30-2009, 2:55 AM by arun. 3 replies.
Sort Posts: Previous Next
  •  06-29-2009, 5:51 AM 54411

    Help!!!

    Kindly help me to find a regex to filter out numbers ending in this pattern

     xxyyxx eg:114411,992299,551155

     

    Thanks in advance

     


    Regards
    Arun
  •  06-29-2009, 10:18 AM 54420 in reply to 54411

    Re: Help!!!

    I will leave it to you to bound in \b or otherwise restrict the characters bordering your pattern if required.

    (\d)\1(\d)\2(\d)\3


  •  06-30-2009, 2:37 AM 54435 in reply to 54420

    Re: Help!!!

    Thanks for the help ddrudik ..

    The above pattern matches all repeating digits .eg:112233,332244,...999999

    how can i restrict the first and last repeating digits same eg:224422,331133

     

     


    Regards
    Arun
  •  06-30-2009, 2:55 AM 54436 in reply to 54435

    Re: Help!!!

    Thanks for the great help..ddrudik

    i figured it out

     This was the requirement

    \d\1\d\2\1\1

    \d\1\d\2\1\1

     


    Regards
    Arun
View as RSS news feed in XML