linux ÕýÔò±í´ïʽѧϰ2
ÕýÔò±í´ïʽ(regular expression)
[code:1]ÕýÔò±í´ïʽ(regular expression)
--------------------------------------------------------------------------------
¹Ø¼ü×Ö£º ÕýÔò±í´ïʽ£¬Regular Expression
ÔÖø£ºÐ¦ÈÝ
´´×÷ÓÚ£º2004Äê05ÔÂ03ÈÕ
×îºó¸üУº2004Äê05ÔÂ04ÈÕ 21:12
°æȨÉùÃ÷£ºÊ¹Óô´×÷¹«ÓðæȨÐÒé
ÒýÓõØÖ·£º<a href="http://www.ixue.net/programer/regular_expression.htm">ÕýÔò±í´ïʽ(regular expression)</a>
·µ»Ø
--------------------------------------------------------------------------------
Ç°ÑÔ
ÕýÔò±í´ïʽÊÇ·³ËöµÄ£¬µ«ÊÇÇ¿´óµÄ£¬Ñ§»áÖ®ºóµÄÓ¦ÓûáÈÃÄã³ýÁËÌá¸ßЧÂÊÍ⣬»á¸øÄã´øÀ´¾ø¶ÔµÄ³É¾Í¸Ð¡£Ö»ÒªÈÏÕæÈ¥ÔĶÁÕâЩ×ÊÁÏ£¬¼ÓÉÏÓ¦ÓõÄʱºò½øÐÐÒ»¶¨µÄ²Î¿¼£¬ÕÆÎÕÕýÔò±í´ïʽ²»ÊÇÎÊÌâ¡£
Ë÷Òý
1._Òý×Ó
2._ÕýÔò±í´ïʽµÄÀúÊ·
3._ÕýÔò±í´ïʽ¶¨Òå
3.1_ÆÕͨ×Ö·û
3.2_·Ç´òÓ¡×Ö·û
3.3_ÌØÊâ×Ö·û
3.4_ÏÞ¶¨·û
3.5_¶¨Î»·û
3.6_Ñ¡Ôñ
3.7_ºóÏòÒýÓÃ
4._¸÷ÖÖ²Ù×÷·ûµÄÔËËãÓÅÏȼ¶
5._È«²¿·ûºÅ½âÊÍ
6._²¿·ÖÀý×Ó
7._ÕýÔò±í´ïʽƥÅä¹æÔò
7.1_»ù±¾Ä£Ê½Æ¥Åä
7.2_×Ö·û´Ø
7.3_È·¶¨Öظ´³öÏÖ
--------------------------------------------------------------------------------
1. Òý×Ó
¡¡¡¡Ä¿Ç°£¬ÕýÔò±í´ïʽÒѾÔںܶàÈí¼þÖеõ½¹ã·ºµÄÓ¦Ó㬰üÀ¨*nix£¨Linux, UnixµÈ£©£¬HPµÈ²Ù×÷ϵͳ£¬PHP£¬C#£¬JavaµÈ¿ª·¢»·¾³£¬ÒÔ¼°ºÜ¶àµÄÓ¦ÓÃÈí¼þÖУ¬¶¼¿ÉÒÔ¿´µ½ÕýÔò±í´ïʽµÄÓ°×Ó¡£
¡¡¡¡ÕýÔò±í´ïʽµÄʹÓ㬿ÉÒÔͨ¹ý¼òµ¥µÄ°ì·¨À´ÊµÏÖÇ¿´óµÄ¹¦ÄÜ¡£ÎªÁ˼òµ¥ÓÐЧ¶øÓÖ²»Ê§Ç¿´ó£¬Ôì³ÉÁËÕýÔò±í´ïʽ´úÂëµÄÄѶȽϴó£¬Ñ§Ï°ÆðÀ´Ò²²»ÊǺÜÈÝÒ×£¬ËùÒÔÐèÒª¸¶³öһЩŬÁ¦²ÅÐУ¬ÈëÃÅÖ®ºó²ÎÕÕÒ»¶¨µÄ²Î¿¼£¬Ê¹ÓÃÆðÀ´»¹ÊDZȽϼòµ¥ÓÐЧµÄ¡£
Àý×Ó£º ^.+@.+\\..+$
¡¡¡¡ÕâÑùµÄ´úÂëÔø¾¶à´Î°ÑÎÒ×Ô¼º¸øÏÅÍ˹ý¡£¿ÉÄܺܶàÈËÒ²ÊDZ»ÕâÑùµÄ´úÂë¸øÏÅÅܵİɡ£¼ÌÐøÔĶÁ±¾ÎĽ«ÈÃÄãÒ²¿ÉÒÔ×ÔÓÉÓ¦ÓÃÕâÑùµÄ´úÂë¡£
¡¡¡¡×¢Ò⣺ÕâÀïµÄµÚ7²¿·Ö¸úÇ°ÃæµÄÄÚÈÝ¿´ÆðÀ´ËƺõÓÐЩÖظ´£¬Ä¿µÄÊÇ°ÑÇ°Ãæ±í¸ñÀïµÄ²¿·ÖÖØÐÂÃèÊöÁËÒ»´Î£¬Ä¿µÄÊÇÈÃÕâЩÄÚÈݸüÈÝÒ×Àí½â¡£
2. ÕýÔò±í´ïʽµÄÀúÊ·
¡¡¡¡ÕýÔò±í´ïʽµÄ“×æÏÈ”¿ÉÒÔÒ»Ö±ÉÏËÝÖÁ¶ÔÈËÀàÉñ¾ÏµÍ³ÈçºÎ¹¤×÷µÄÔçÆÚÑо¿¡£Warren McCulloch ºÍ Walter Pitts ÕâÁ½Î»Éñ¾ÉúÀíѧ¼ÒÑо¿³öÒ»ÖÖÊýѧ·½Ê½À´ÃèÊöÕâЩÉñ¾ÍøÂç¡£
¡¡¡¡1956 Äê, һλ½Ð Stephen Kleene µÄÊýѧ¼ÒÔÚ McCulloch ºÍ Pitts Ôç
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
ÔÚwindowXPÏ°²×°ÁËRedhat linux AS4£¬ÔÚvmwareÏÂÑ¡ÔñÁËhost-only·½Ê½ÓëÖ÷»úͨÐÅ¡£
ʹÓÃhost-only·½Ê½ÓëÖ÷»úͨÐÅ£¬vmwareʹÓõÄÊÇVMware Network Adapter VMnet1ÐéÄâÍø¿¨£¬²é¿´¸ÃÍø¿¨µÄIPÊÇ 192.168.75.1¡£
ÔÚÐéÄâ»úÏÂÃæµÄlinuxÏÂÓöµ½ÁËһϼ¸¸öÎÊÌ⣺
1¡¢Äܹ»ÕÒµ½ eth0Íø¿¨£¬Ò²¾ÍÁ¬²»ÉÏÍøÂç¡£Ö¢×´ÊÇifconfigÒÔºóÄÜÏÖÊ ......
linuxÍøÂç²ÎÊýÖ÷ҪλÓÚÏÂÃæÁ½¸öĿ¼ÏÂ:/proc/sys/net/core/ºÍ/proc/sys/net/ipv4/, ÏÂÃæ·Ö±ð¶ÔÕâÁ½¸öĿ¼Ï³£Óõļ¸¸öÍøÂç²ÎÊý×öÏÂ˵Ã÷:
1./proc/sys/net/core/
$ /proc/sys/net/core/somaxconn
listen()µÄĬÈϲÎÊý,¹ÒÆðÇëÇóµÄ×î´óÊýÁ¿.ĬÈÏÊÇ128.¶Ô·±Ã¦µÄ·þÎñÆ÷,Ôö¼Ó¸ÃÖµÓÐÖúÓÚÍøÂçÐÔÄÜ, ¿É²Î¿¼µÄÓÅ»¯Ö ......
1¡¢Linux »ù´¡
°²×°Linux²Ù×÷ϵͳ LinuxÎļþϵͳ Linux³£ÓÃÃüÁî LinuxÆô¶¯¹ý³ÌÏê½â ÊìϤLinux·þÎñÄܹ»¶ÀÁ¢°²×°Linux²Ù×÷ϵͳ Äܹ»ÊìÁ·Ê¹ÓÃLinuxϵͳµÄ»ù±¾ÃüÁî ÈÏʶLinuxϵͳµÄ³£Ó÷þÎñ°²×°Linux²Ù×÷ϵͳ Linux»ù±¾ÃüÁîʵ¼ù ÉèÖÃLinux»·¾³±äÁ¿ ¶¨ÖÆLinuxµÄ·þÎñ Shell ±à³Ì»ù´¡Ê¹ÓÃvi±à¼Îļþ ʹÓÃEmacs±à¼Îļþ ʹÓÃÆäËû±à ......