Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Jak poprawne wyrażanie regularne szukające method="GET"
adamec
post
Post #1





Grupa: Zarejestrowani
Postów: 30
Pomógł: 3
Dołączył: 18.04.2012
Skąd: Rybnik

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


Witam ma problem z wyrażaniem regularnym
mam taki kod
  1.  
  2. $mCaloscFormularza = '<FORM action="test.php" method="GET" />';
  3.  
  4. $mMetoda='POST';
  5.  
  6.  
  7. $matoda = 'method="'.$mMetoda.'"';
  8.  
  9. preg_replace('/method=\".*?\"/',$matoda, $mCaloscFormularza);
  10.  

Chce uzystać zmiane metody z GET na POST
Prubowałem już takich wyrażeń"
/method=\"(.*?)\"/
/method=\"(.*?){3,4}\"/
/method=\"(.+?)\"/
#method=\"(.*?)\"#
żadne nie zadziałały


--------------------
Jeżeli uda mi się pomóc Tobie to jestem usatysfakcjonowany . Wtedy Ty kliknij na POMÓGŁ
Go to the top of the page
+Quote Post

Posty w temacie


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 - 07:47