Aide Linux - Liste de diffusion Ze-Linux
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [regexp] combiner ?




<citation de="CHANIAL David">
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Bonjour,
>
> Quelqu'un saurait-il comment combiner ces deux expressions régulières ?
> Merci
>
> $html =~ /href="(.+?)"/gi)
> $html =~ /href='(.+?)'/gi)

Je pense (mais je n'ai rien pour valider sous la main.
$html =~ /href='(.+?)['"]/gi)


-- 
> informaticien qui tire à l'arc ou archer qui informatise?
> http://plcoder.net
----------------------------------
Informations, désabonnement, règles, obligations sur la liste Aide-Linux :
http://lists.ze-linux.org/howto_ml.html


Aide Linux - Liste de diffusion Ze-Linux