Kristofer Wolff wrote:
> hi, i have the following easy regexp:
> 
> /^exampl(.*)$/
> 
> but for ".*" I want only match the 0 - 4 character, see:
> 
> exampl
> examplX
> examplXX
> examplXXX
> examplXXXX
> 
> and not more ! how can I realise it in the regexp string ? 

By reading `perldoc perlre` and using the construct that "match[es] at least
n but not more than m times". (In the section "Regular Expressions", near
the beginning, in the table headed "The following standard quantifiers are
recognized:".)

Cheers,
Phi "{0,4}" lip
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to