Find a regular substitution expression for a URL intercept

Source: Internet
Author: User
Find a regular substitution expression for a URL intercept

http://p.yiqifa.com/n?k=2mLErnws6E4H2mLErI6H2mLsWN3OrnDsWN2e6QLs1NDF6ZLErZyH2mLe6n6w3E3LMZqt6cuLUJeH&spm= 1.1.1.1&t=http://www.xuansou.com/

Such a URL, want to put the second http://Before the contents of all replaced by empty
Just to keep http://www.xuansou.com/.

What do you need, thank you, I'm a rookie.


Reply to discussion (solution)

$s = ' http://p.yiqifa.com/n?k=2mlernws6e4h2mleri6h2mlswn3orndswn2e6qls1ndf6zlerzyh2mle6n6w3e3lmzqt6culujeh& spm=1.1.1.1&t=http://www.xuansou.com/'; Echo preg_replace ('/.+?t=/', ', $s);
  • Related Article

    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.