PHPÕýÔò±í´ïʽ°Ù¿Æ
»ù±¾¸ÅÄî
Ò»¸öÕýÔò±í´ïʽͨ³£±»³ÆΪһ¸öģʽ (pattern)£¬ÎªÓÃÀ´ÃèÊö»òÕßÆ¥ÅäһϵÁзûºÏij¸ö¾ä·¨¹æÔòµÄ×Ö·û´®¡£ÀýÈ磺Handel¡¢Händel ºÍ Haendel ÕâÈý¸ö×Ö·û´®£¬¶¼¿ÉÒÔÓÉ“H(a|ä|ae)ndel”Õâ¸öģʽÀ´ÃèÊö¡£´ó²¿·ÖÕýÔò±í´ïʽµÄÐÎʽ¶¼ÓÐÈçϵĽṹ£º
Ñ¡Ôñ| ÊúÖ±·Ö¸ô·û´ú±íÑ¡Ôñ¡£ÀýÈç“gray|grey”¿ÉÒÔÆ¥Åägrey»ògray¡£ÊýÁ¿ÏÞ¶¨Ä³¸ö×Ö·ûºóµÄÊýÁ¿ÏÞ¶¨·ûÓÃÀ´ÏÞ¶¨Ç°ÃæÕâ¸ö×Ö·ûÔÊÐí³öÏֵĸöÊý¡£×î³£¼ûµÄÊýÁ¿ÏÞ¶¨·û°üÀ¨“+”¡¢“?”ºÍ“*”£¨²»¼ÓÊýÁ¿ÏÞ¶¨Ôò´ú±í³öÏÖÒ»´ÎÇÒ½ö³öÏÖÒ»´Î£©£º+ ¼ÓºÅ´ú±íÇ°ÃæµÄ×Ö·û±ØÐëÖÁÉÙ³öÏÖÒ»´Î¡£(1´Î¡¢»ò¶à´Î)¡£ÀýÈ磬“goo+gle”¿ÉÒÔÆ¥Åägoogle¡¢gooogle¡¢goooogleµÈ; ? ÎʺŴú±íÇ°ÃæµÄ×Ö·û×î¶àÖ»¿ÉÒÔ³öÏÖÒ»´Î¡£(0´Î¡¢»ò1´Î)¡£ÀýÈ磬“colou?r”¿ÉÒÔÆ¥Åäcolour»òÕßcolor;* ÐǺŴú±íÇ°ÃæµÄ×Ö·û¿ÉÒÔ²»³öÏÖ£¬Ò²¿ÉÒÔ³öÏÖÒ»´Î»òÕ߶à´Î¡£(0´Î¡¢»ò1´Î¡¢»ò¶à´Î)¡£ÀýÈ磬“0*42”¿ÉÒÔÆ¥Åä42¡¢042¡¢0042¡¢00042µÈ¡£Æ¥ÅäÔ²À¨ºÅ¿ÉÒÔÓÃÀ´¶¨Òå²Ù×÷·ûµÄ·¶Î§ºÍÓÅÏȶȡ£ÀýÈ磬“gr(a|e)y”µÈ¼ÛÓÚ“gray|grey”£¬“(grand)?father”Æ¥ÅäfatherºÍgrandfather¡£
ÉÏÊöÕâЩ¹¹Ôì×Ó¶¼¿ÉÒÔ×ÔÓÉ×éºÏ£¬Òò´Ë£¬“H(ae?|ä)ndel”ºÍ“H(a|ae|ä)ndel”ÊÇÏàͬµÄ¡£
¾«È·µÄÓï·¨¿ÉÄÜÒò²»Í¬µÄ¹¤¾ß»ò³ÌÐò¶øÒì¡£
[±à¼] ÀúÊ·
×î³õµÄÕýÔò±í´ïʽ³öÏÖÓÚÀíÂÛ¼ÆËã»ú¿ÆѧµÄ×Ô¶¯¿ØÖÆÀíÂÛºÍÐÎʽ»¯ÓïÑÔÀíÂÛÖС£ÔÚÕâЩÁìÓòÖÐÓжԼÆË㣨×Ô¶¯¿ØÖÆ£©µÄÄ£ÐͺͶÔÐÎʽ»¯ÓïÑÔÃèÊöÓë·ÖÀàµÄÑо¿¡£1940Äê´ú£¬Warren McCullochÓëWalter Pitts½«Éñ¾ÏµÍ³ÖеÄÉñ¾ÔªÃèÊö³ÉС¶ø¼òµ¥µÄ×Ô¶¯¿ØÖÆÔª¡£ÔÚ1950Äê´ú£¬Êýѧ¼Ò˹µÙ·Ò·¿Æ¶û·¿ËÀ³ÄáÀûÓóÆ֮Ϊ“ÕýÔò¼¯ºÏ”µÄÊýѧ·ûºÅÀ´ÃèÊö´ËÄ£ÐÍ¡£¿Ï·ÌÀÆÕÑ·½«´Ë·ûºÅϵͳÒýÈë±à¼Æ÷QED£¬È»ºóÊÇUnixÉϵıà¼Æ÷ed£¬²¢×îÖÕÒýÈëgrep¡£×Ô´Ë£¬ÕýÔò±í´ïʽ±»¹ã·ºµØʹÓÃÓÚ¸÷ÖÖUnix»òÕßÀàËÆUnixµÄ¹¤¾ß£¬ÀýÈçPerl¡£
PerlÕýÔò±í´ïʽԴ×ÔÓÚHenry SpencerдµÄregex£¬ËüÒѾÑÝ»¯³ÉÁËpcre£¨Perl¼æÈÝÕýÔò±í´ïʽ£¬Perl Compatible Regular Expressions£©£¬Ò»¸öÓÉPhilip Hazel¿ª·¢µÄ£¬ÎªºÜ¶àÏÖ´ú¹¤¾ßËùʹÓõĿ⡣
¸÷¼ÆËã»úÓïÑÔÖ®¼äµÄÕýÔò±í´ïʽµÄ¼¯³ÉÄ¿Ç°¿ªÕ¹µÄºÜ²î¡£Î´À´µÄPerl6µÄ×ÓÏîÄ¿ApocalypseµÄÉè¼ÆÖÐÒÑ¿¼Âǵ½ÁËÕâµã¡£
[±à¼] ÐÎʽ»¯ÓïÑÔÀíÂÛ
ÕýÔò±í´ïʽ¿ÉÒÔÓÃÐÎ
Ïà¹ØÎĵµ£º
/* Author: ÑîÓî <yangyu@sina.cn> */
//½«Ã루·Çʱ¼ä´Á£©×ª»¯³É ** Сʱ ** ·Ö
function sec2time($sec){
$sec = round($sec/60);
if ($sec >= 60){
$hour = floor($sec/60);
$min = $sec%60;
$res = $hour.' Сʱ ';
$min != ......
¸ÕѧPHPµÄMVC,ÍøÉÏÕÒÀ´µãÎÄÕÂѧϰ,·ÖÏíÏÂ
ASP£¬JSP£¬PHPÊÇWEB¿ª·¢µÄÈý´ó¼¼Êõ£¬ÈýÖÖ¼¼ÊõÓÅȱµãÒ²Ôç¾ÍÓÐÈË·ÖÎö¹ýÁË¡£ÎÞ·ÇÒ²¾ÍÊÇASP¼òµ¥Ò×ÓÃÇÒÓÐmicrosoft×ö¿¿É½£¬JSP¹¦ÄÜÇ¿´óÊÇÒòΪÓÐjavaÖ§³Ö£¬PHPÔò¿ªÔ´¿çƽ̨¡£ÔÚ¹úÄÚ£¬ASPÓ¦Ó÷¶Î§×î¹ã£¬JSP·¢Õ¹ÊÆÍ·×îÃÍ£¬PHPÔò´¦ÓÚÁÓÊÆ¡£Õâ¿ÉÄÜÓë¹«Ë ......
PHPµ÷ÊÔ»·¾³·Ç³£Âé·³,¶øÇÒÖÖÀàÆä¶à.ÍøÉϵÄÏà¹ØÎÄÕÂÌ«¶àÁË,µ«ÓÉÓÚʱЧµÄÎÊÌâ,²¢²»ÄÜÓÃ.
½ñÌìÕÒµ½Ò»ÆªÎÄÕÂ,ÓÚ2009Äê12ÔÂ17ÈÕ²âÊÔ¿ÉÓÃ.µ«Ê¹ÓÃPDT֮ǰ,Ðè×°JDK,¿Éµ½http://www.skycn.com/soft/3116.htmlÏÂÔØ
ÎÄÕµØÖ·:http://blog.csdn.net/yuhui_fish/archive/2009/03/29/4033397.aspx
ÄÚÈÝÈçÏÂ:
×î½üÔÚÓÃphp£¬ÅäÖúÜÂé·³£ ......
2009-10-22 09:16
|
322´ÎÔĶÁ
|
¡¾ÒÑÓÐ0
ÌõÆÀÂÛ¡¿·¢±íÆÀÂÛ
¹Ø¼ü´Ê£ºPHP
| ¸Ðлyvonne_826
µÄÌṩ
|
ÊÕ²ØÕâƪÐÂÎÅ
ÈÕÇ°£¬PHPÓïÑÔ¼°¹¤¾ß¹©Ó¦ÉÌZend
TechnologiesÐû²¼½«ÁªÊÖÔƼÆËãÓ¦ÓùÜÀíÁì¾üÆóÒµRightScale£¬°ïÖúPHP¿ª·¢Õß½øÈëÔƼÆËãµÄÓ¦Óá£RightScale½« ......
PHP]
;;;;;;;;;;;
; WARNING ;
;;;;;;;;;;;
; This is the default settings file for new PHPinstallations.
; By default, PHP installs itself with a configuration suitablefor
; development purposes, and *NOT* for production purposes.
; For several security-oriented considerations that should betak ......