Dans le script shell, grep -Eo {regex} {file}
renvoie la partie correspondante de l'expression régulière. Par exemple:Perl, équivalent de grep -Eo
$ echo \
'For support, visit <http://www.example1.com/support>
You can also visit <http://www.example2.com/products> for information.'
| grep -Eo 'http://[a-z0-9_.-]+/'
http://www.example1.com/
http://www.example2.com/
Comment est-ce que je ferais ceci avec Perl?