Do not replace the content in the tag when using the regular keyword.-php Tutorial

Source: Internet
Author: User
Do I not replace the content in the mark when I use the regular keyword for help? HTMLcode & lt; ahref & quot; # & quot; & gt; test & lt; a & gt; # & quot; & gt; test it & lt; a & gt; test it to see & lt; ahref & quot; # & quot; & gt; test & lt; do I not replace the content in the mark when I use the regular keyword for help?
HTML code
  Test me. in Lhasa, it seems that the judicial board has put a card swipe machine and tested the crazy test. the Saks tornado saw that the test was so relaxed and tested.


Replace the word test with A link, for example, replace but the test already in the mark is not replaced.

It cannot be implemented after a long time. Thoughts

------ Solution --------------------
Implemented
1 .(? <= ^ | )(? :(?!] +>).) + (] +> | $)
Other than matching
2. replace the test in this result with the content you want.

If not (? <=) Is modified
(^ | )(? :(?!] +>).) + (] +> | $)

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.