Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

jagne kvrj, ngochan1126@hotmail.­com, a asdfghjhhjjkl', cvezrtg, chink chinese frankies, lambhead@rocketmail.com, priwalfdept77@yahoo.de, from scipy.optimize import minpack2 ImportError: DLL load failed: 找不到指定的模块。, yamlå, adfghjshjklç

Links

XODOX
Impressum

#1: 一个正则问题

Posted on 2012-08-22 03:22:59 by 快乐周末

ãç²¾éæ­£å表达å¼ã第ä¸ç p74
ï¼å°HTTP URL转æ¢ä¸ºé¾æ¥å½¢å¼ ...
$text =~ s{
\b
(
http:// [-a-z0-9]+(\.[-a-z0-9]+)+\.(com;edu;info) \b
(
/ [-a-z0-9R:\@&?=+,.!/ ̃+â%\$]+
)?
)
}{<a href="$1">$1</a>}gix;

å¹éhostnameé¨å为ä½æ个â\bâ ?为ä»ä¹ä¸æ\bæ¾å°pathåé¢ï¼åè¿æ ·
$text =~ s{
\b
(
http:// [-a-z0-9]+(\.[-a-z0-9]+)+\.(com;edu;info)
(
/ [-a-z0-9R:\@&?=+,.!/ &#771;+â%\$]+
)?
)
\b
}{<a href="$1">$1</a>}gix;

--

â» æ¥æº:ã»æ°´æ¨ç¤¾åº http://newsmth.netã»

Report this message