Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [preg_replace] co tu jest zle
GrayHat
post
Post #1





Grupa: Zarejestrowani
Postów: 566
Pomógł: 18
Dołączył: 23.08.2003
Skąd: Łomża

Ostrzeżenie: (0%)
-----


kod:
[php:1:a5ce669d14]<?php
$vars->body = preg_replace("/[link].*[/link]/", "<a href="//1">//1</a>", $vars->body);

?>[/php:1:a5ce669d14]

błąd:
Kod
Warning: Unknown modifier 'l' in C:usrwwwportfolioindex.php on line 9


--------------------
*Note: No animals were killed durning the construction of this post.
Go to the top of the page
+Quote Post
Seth
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 2 335
Pomógł: 6
Dołączył: 7.03.2002

Ostrzeżenie: (0%)
-----


Kod
/[link](.*?)[/link]/
Go to the top of the page
+Quote Post
GrayHat
post
Post #3





Grupa: Zarejestrowani
Postów: 566
Pomógł: 18
Dołączył: 23.08.2003
Skąd: Łomża

Ostrzeżenie: (0%)
-----


thx seth a teraz widze ze i druga wartosc sie chrzani :/ co tam wstawnac? zamiast //1


--------------------
*Note: No animals were killed durning the construction of this post.
Go to the top of the page
+Quote Post
GrayHat
post
Post #4





Grupa: Zarejestrowani
Postów: 566
Pomógł: 18
Dołączył: 23.08.2003
Skąd: Łomża

Ostrzeżenie: (0%)
-----


[php:1:e6f1017970]<?php
$vars->body = preg_replace("/[link](.*?)[/link]/", "<a href="1">1</a>", $vars->body);

?>[/php:1:e6f1017970]

cos takiego mam ale cos zle wyswietla :/


--------------------
*Note: No animals were killed durning the construction of this post.
Go to the top of the page
+Quote Post
Seth
post
Post #5





Grupa: Przyjaciele php.pl
Postów: 2 335
Pomógł: 6
Dołączył: 7.03.2002

Ostrzeżenie: (0%)
-----


[php:1:a163a307c0]<?php
$vars->body = preg_replace("/[link](.*?)[/link]/", "<a href="1">1</a>", $vars->body);
?>[/php:1:a163a307c0]
Go to the top of the page
+Quote Post
BzikOS
post
Post #6





Grupa: Przyjaciele php.pl
Postów: 660
Pomógł: 0
Dołączył: 28.08.2002
Skąd: Starachowice

Ostrzeżenie: (0%)
-----


[php:1:74b942b2a0]<?php
$vars->body = preg_replace("/[link](.*?)[/link]/s", "<a href="1">1</a>", $vars->body );
?>[/php:1:74b942b2a0]
Go to the top of the page
+Quote Post
GrayHat
post
Post #7





Grupa: Zarejestrowani
Postów: 566
Pomógł: 18
Dołączył: 23.08.2003
Skąd: Łomża

Ostrzeżenie: (0%)
-----


dzieki bziq wsio ladnie dziala biggrin.gif


--------------------
*Note: No animals were killed durning the construction of this post.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 11:20