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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Tomb
Forum Newbie
Posts: 3
Joined: Sun Jun 02, 2002 1:51 pm

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

Post 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 :)
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

No, in fact, that is Perl.

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