The href matching the tag is related to the name.

Source: Internet
Author: User
Technical topic. csdn. netu2011121616934599d3-8e99-4b help to match the href and name of a tag
Sorry,
This is the third tag question.
Http://topic.csdn.net/u/20111219/16/76c412e3-ee15-4812-ac11-fe5f15a1dea1.html
Http://topic.csdn.net/u/20111216/16/934599d3-8e99-4b94-8dae-28e5b9c455c4.html
However, there is no way to solve this problem.

Yes.

Previously, the connection solved a regular expression matching the href and name of the tag.
But now it is in the result string to be matched
There are two forms of tags

Mccailin

$ Regular = '/] * href = "([^"] *) "> (. *) <\/a>/isu ';

Meilihui brand shopping

The matched result is: $ regular = '/] * href = "([^"] *) "[^>] *> (. *) <\/a>/isU ';

My problem is

Is there any way to match two regular expressions ?????

The result string is

HTML code
                            Mccailin              Meilihui brand shopping              V + discount              Ihaveu              Go xiun.com              Top product discount Network              Metersbonwe Mall            


------ Solution --------------------
You can see the one I used last time. my one is generic, but you are useless ..... I have already made it generic...

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.