On Aug 22, Michel Blanc said:
>Does anyone could help in mathing one of the following letters
>
> cCdeEfGhiI
>
>any number of times, but if a letter has already matched, it can repeat
>again in the string.
>
>cCdE : match
>cCcE : doesn't match
I think you mean "if a letter has already matched, it CAN'T repeat again
in the string" -- meaning, each character must be unique.
It's not a simple task without a complex regex assertion, (??{ ... }).
I can provide a solution, but I cannot guarantee it will be easy to
understand once explained.
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]