Hello, I am redirecting this question from beginners-cgi to beginners. Please respond to the original poster ([EMAIL PROTECTED]) and the beginners list. Please remember that non-CGI related questions should not be send to beginners-cgi. Thanks.
Cheers, Kevin On Wed, Feb 20, 2002 at 01:13:55PM -0300, Lilian Alvarenga Caravela Godoy ([EMAIL PROTECTED]) said something similar to: > Hi everyone > > I am trying to learn Perl looking into some scripts. > > One of them has a regular expression inside. > > First of all, I need to know what two specific lines are doing. The code is > bellow. > > $req =~ s/\r//g ; > $req =~ s/([^\n]{72,72})\n([^\n]{1,71})\n([^\n]{1,71})$/$1\n$2$3/ > > I know they are replacing some things but cannot understand what. Specially > the second one. > > I would really appreciate if somebody could explain to me what that regular > expression means. It is kind of an emergency. > > And, if someone knows a link where there is more information about regular > expressions, I would be grateful. > > Thanks in advance. > > Lilian -- [Writing CGI Applications with Perl - http://perlcgi-book.com] Everywhere is walking distance if you have the time. -- Steven Wright -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]