帮忙写个很简单的正则,多谢了.就是将*32199.net匹配到www.32199.net/
Jun 13, 2016 am 10:08 AM
帮忙写个很简单的正则,谢谢了..就是将*.32199.net匹配到www.32199.net/*
帮忙写个很简单的正则,谢谢了..就是将*.32199.net匹配到www.32199.net/*
谢谢了..
*代表任意的字符..
------解决方案--------------------
什么意思? 替换? 还是url 重写
------解决方案--------------------
很简单 参考下http://liangfen1224.blog.163.com/blog/static/72377647201138115011897/
------解决方案--------------------
- XML code
RewriteRule ^(.*).32199.net$ www.32199.net/$1<br><font color="#e78608">------解决方案--------------------</font><br>写在httpd.cof别忘了重启apache啊<br><font color="#e78608">------解决方案--------------------</font><br>$str1=http:\/\/www.32199.net/index.html<br>标记;<br><br>$pm1='@^(.*).32199.net/(.*)@';<br><br>if(preg_match($pm1,$str1))<br>{<br> echo '1.找到了<br>';<br>}<br>else<br>{<br> echo '1.找不到<br>';<br>}<br><br><br>---------------<br>结果我找到了...<div class="clear"> </div>

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

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

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

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

Hot Topics

Fix 0x800713ec.NET Framework error code

Huawei releases Watch GT 5 smartwatch across Europe and UK in two sizes with early launch gift

Microsoft is rolling out Windows 11 23H2 build to the release preview channel with Copilot

.NET Core cross-platform application development practice: a seamless journey from Windows to Linux and macOS

How to uninstall .net framework in Win10 system? How to uninstall .net framework in Win10
