Help me write a simple regular expression. thank you .. match * .32199.net to www.32199.net * to help write a simple regular expression. thank you .. match * .32199.net to www.32199.net *. thank you .. * represents any character .. ------ solution -------------------- what does it mean? Replace? Or url rewriting ------ solution --------- help write a very simple regular expression, thanks... match * .32199.net to www.32199.net /*
Help me write a simple regular expression. thank you. it is to match * .32199.net to www.32199.net /*
Thank you ..
* Represents any character ..
------ Solution --------------------
What does it mean? Replace? Or url rewriting
------ Solution --------------------
Very simple reference http://liangfen1224.blog.163.com/blog/static/72377647201138115011897/
------ Solution --------------------
XML code
RewriteRule ^ (. *) .32199.net $ www.32199.net/#1
------ Solution --------------------
Write it in httpd. cof. Don't forget to restart apache.
------ Solution --------------------
$ Str1 = <
<Mark
Http: \ // www.32199.net/index.html
Mark;
$ Pm1 = '@ ^ (. *) .32199.net /(.*)@';
If (preg_match ($ pm1, $ str1 ))
{
Echo '1. found
';
}
Else
{
Echo '1. not found
';
}
---------------
As a result, I found...