Jump to content

Data from HTML file, regex?


asmith3006

Recommended Posts

Hi,

 

I have an HTML file with the code

<input type="hidden" id="slotprod_1" value="WV013">

and I want to extract the value "WV013" from it (without the quotes). This is contained on a page with lots of other HTML.

 

Is a regular expression the way to do this?

 

Thanks

 

Andrew.

Link to comment
https://forums.phpfreaks.com/topic/140919-data-from-html-file-regex/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.