Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2951 connectés 

  FORUM HardWare.fr
  Programmation
  PHP

  regexp url pcre

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

regexp url pcre

n°233269
--stan--
Posté le 23-10-2002 à 20:19:16  profilanswer
 

pk ca marche pas ?

Code :
  1. $string = 'www.maxiservices.net';
  2. $search = '/ (www)(\S+)/i';
  3. $replace = '<a href=\"http://$1$2\" target=\"_blank\">$1$2</a>';
  4. $string = preg_replace($search, $replace, $string);
  5. echo $string;

mood
Publicité
Posté le 23-10-2002 à 20:19:16  profilanswer
 

n°233289
Floleb7
Fiché au grand banditisme
Posté le 23-10-2002 à 20:58:04  profilanswer
 

http://forum.telecharger.com/forum [...] h=&subcat=


---------------
« La boîte du logiciel disait que j'avais besoin de "Windows 95 ou mieux" - alors j'ai acheté un Mac. »
n°233311
--stan--
Posté le 23-10-2002 à 21:41:49  profilanswer
 

vi je sais g vu ;)


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  PHP

  regexp url pcre

 

Sujets relatifs
PCRE en javascript ? [Résolu][PHP] regexp encore !!! :'(
[PHP]help regexp pr transformer html en xhtml[PHP] besoin aide avec REGEXP
Encore besoin d'aide sur les regexp please ! [done !][php] experts regexp souhaités %{
cherche fonc texte vers regexp + ex. cod gest smilie & format de texte[php + regexp] un peu d'aide siouplé c pour manger ....
[PHP] Aide pour une regexppb de regexp assez simple mais pas si facile ;)
Plus de sujets relatifs à : regexp url pcre


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR