Jump to content
  • Revista PROGRAMAR: Já está disponível a edição #60 da revista programar. Faz já o download aqui!

Sign in to follow this  
fil79

encontrar tag img

Recommended Posts

fil79

Boas

Tenho um output de HTML que vem de uma base de dados...queria isolar somente a tag img e guardar essa tag numa variável...como posso fazer isso?

Desde já agradeço


MCITP-MCTS-MCP

Share this post


Link to post
Share on other sites
IceBrain

PHP: preg_match.

Quanto à expressão, depende se queres a tag toda ou só a URL. Mas http://www.regular-expressions.info/ é sempre útil.


❝The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.❞- John Carmack on software patents

A list  of command line apps

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.