luckypower has asked for the wisdom of the Perl Monks concerning the following question:

Hellow monks

i want a regex which will match unrepeated strings of digits.

example:
1234 4354 51294 437676767 135792 56835345
o/p:
1234 51294 135792
plz suggest me...

Thanks,
Lucky

Replies are listed 'Best First'.
Re: RegEx require
by ikegami (Patriarch) on Nov 19, 2008 at 11:15 UTC
      It's probably faster just counting the digits
      my %seen; grep $seen{$_}++, /./g
Re: RegEx require
by ccn (Vicar) on Nov 19, 2008 at 11:18 UTC
Re: RegEx require
by Lawliet (Curate) on Nov 19, 2008 at 19:56 UTC