Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php] Regexy - wyluskanie
pieto
post
Post #1





Grupa: Zarejestrowani
Postów: 227
Pomógł: 1
Dołączył: 12.05.2002
Skąd: gdańsk

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


Witam,
Jak zwykle nie moge sobie poradzic z regularnymi, kombinuje kombinuje i nic..
potrzebuje wyluskac sama sciezke z

"java script:if(confirm('http://ftp.icpdas.com.tw/pub/cd/8000cd/napdos/7000/manual/7000dio.pdf \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the...."

Stanąłem na tym :
  1. <?php
  2.  
  3. $con = preg_replace( "%\confirm('(.*?)? \n\%e", "$1", $con ); 
  4.  
  5. ?>


Jesli ktoś pomoze bede wdzięczny (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)
Go to the top of the page
+Quote Post
Apo
post
Post #2





Grupa: Zarejestrowani
Postów: 426
Pomógł: 1
Dołączył: 2.10.2005

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


  1. <?php
  2. $con = preg_replace("#http:\/\/(.*?)\.([\w\D]){2,4}$#", "$1", $con );
  3. ?>

:?:
Go to the top of the page
+Quote Post
bendi
post
Post #3





Grupa: Zarejestrowani
Postów: 401
Pomógł: 5
Dołączył: 14.09.2003
Skąd: Wrocław

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


Cytat(Apo @ 2006-03-17 19:12:39)
  1. <?php
  2. $con  = preg_replace("#http:\/\/(.*?)\.([\w\D]){2,4}$#", "", $con );
  3. ?>

:?:

A co ma piernik do wiatraka?

odpowiedz tutaj
Go to the top of the page
+Quote Post
pieto
post
Post #4





Grupa: Zarejestrowani
Postów: 227
Pomógł: 1
Dołączył: 12.05.2002
Skąd: gdańsk

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


Odpowiedź ta nie działa (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) nic nie robi... kurcze kombinuje i nic z tego (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) ...
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 2.10.2025 - 21:50