A positive responsibility

Source: Internet
Author: User
For help, I am responsible for matching a piece of content. to get this section of content, I must use or connect two matching strings. But I don't know how to link HTMLcode & lt; thclass & quot; left & quot; & gt; stock name & lt; th & gt; latest & lt; th & gt; rise/fall % & lt; th & gt; t seek a positive responsibility
I want to match a piece of content

To obtain the content, you must use or connect two strings before matching. But I don't know how to connect



HTML code
      Stock name    Latest    Increase/decrease %Td class = 'left' width = '72 '>

Nasdaq



The content above,
Now I want to get
Stock name's latest rise/fall % Nasdaq

I wrote a positive responsibility:
Preg_match_all ('/ ] *> |(. *) <\/Td>/isU ', $ value, $ strs );

But it cannot be used.
Also take a look.




------ Solution --------------------
PHP code
$ Value = <Stock name    Latest    Increase/decrease %        

Nasdaq

Html; preg_match_all ('/( ] *> |

) (. *) (<\/Th> | <\/p>)/isU ', $ value, $ strs); print_r ($ strs [2]);

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.