<script>ec(2);</script>
//方法一
代码如下 | 复制代码 |
$str = ' preg_match_all ('|^ print_r($out); |
//方法二
代码如下 | 复制代码 |
preg_match_all('/href=['"]+(.*)['"]+/',$str,$matches); var_dump($matches[1]); |
//方法三
代码如下 | 复制代码 |
//(?]+ |
//方法四
代码如下 | 复制代码 |
preg_match("/ print_r($aMatch[1]); |
//方法五
代码如下 | 复制代码 |
preg_match_all('/href=('|"|s)*([^'">s]+)/i',$str,$match); print_r($match); preg_match_all('/src=('|"|s)*([^'">s]+)/i',$str,$match); print_r($match); |
/*
上面这正则得到url的地址都是用了php正则表达试来实现的,只是方法有一点不同了。
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article
What's New in Windows 11 KB5054979 & How to Fix Update Issues
3 weeks agoByDDD
How to fix KB5055523 fails to install in Windows 11?
2 weeks agoByDDD
InZoi: How To Apply To School And University
4 weeks agoByDDD
How to fix KB5055518 fails to install in Windows 10?
2 weeks agoByDDD
Roblox: Dead Rails – How To Summon And Defeat Nikola Tesla
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

SublimeText3 Chinese version
Chinese version, very easy to use

Dreamweaver CS6
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor

WebStorm Mac version
Useful JavaScript development tools
