Page 1 of 1

Please help me in $Content =~ s!\<\$loop\$(\d*)\$\>(.+

Posted: Sun Jun 02, 2002 1:51 pm
by Tomb

Code: Select all

$Content =~ s!\<\$loop\$(\d*)\$\>(.+?)\<\$loop\$\>!\<\$loop\$\>!s;
Is that PHP and $Content is var rite? What does it function ? What is the difference between * and +? , one more what is "s" (before ';') for ???

Please helpppppp , thanks :)

Posted: Sun Jun 02, 2002 1:55 pm
by jason
No, in fact, that is Perl.

Look into the PCRE section (Perl Compatible Regular Experssions) in the PHP manual.