Jump to content
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

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.