Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
ç¹å®ã³ãã³ãã®æ£è¦è¡¨ç¾ã§ä½¿ããã¡ã¿æåãä½ã ãããããªãï¼ æ£è¦è¡¨ç¾èªä½ã¯ç¥ã£ã¦ãããã©ããããä»ãã使ããã¨ãã¦ããã³ãã³ãã§ä½¿ãããã®ãªã®ãããããã«å°ã£ã¦ãã人ãå¤ãã¨æãã®ã§ã¾ã¨ãã¦ã¿ãã ãã£ã3ã¤ã®æ£è¦è¡¨ç¾ã¡ã¿æåã»ããã ãç¥ãã°ãã ã³ãã³ãã«ãã£ã¦ã対å¿ãã¦ããæ£è¦è¡¨ç¾ã¡ã¿æåã®ç¯å²ã«ã¯éãããããããããæä½éç¥ã£ã¦ããã°ããã®ã¯2種é¡+1ãµãã»ããã®3ã¤ã ãã ã BREï¼åºæ¬æ£è¦è¡¨ç¾ï¼ã¡ã¿æåã»ãã EREï¼æ¡å¼µæ£è¦è¡¨ç¾ï¼ã¡ã¿æåã»ãã AWKã®ãµãã»ãã ãã¡ããããã以å¤ã«ãGNUæ¡å¼µæ£è¦è¡¨ç¾ã¡ã¿æåã»ãããPerlæ¡å¼µæ£è¦è¡¨ç¾ã¡ã¿æåã»ãããJavaScriptæ¡å¼µæ£è¦è¡¨ç¾ã¡ã¿æåã»ãããªã©ããã¤ãããã®ã ãããã©ã®UNIXã§ãï¼=POSIXã§ï¼ä½¿ãããã¨ããç¹é·ãæããããã®ã§ããã°ããããã¯è¦ãã¦ãæå³ããªãã®ã§ä¸è¨ã®3ã¤ãããããã¦ããã°ãããï¼ä¾ãPOSI
æ£è¦è¡¨ç¾ã®æåã¯ã©ã¹ã®ç¥è¨æ³ \d 㨠\s 㨠\w ããã¤ã®ã¾ã«ãã¢ã¬ã¬ãªãã¨ã«ãªã£ã¦ããã®ã§ã¡ã¢ã(1 Perl 5.8 以éã§æ£è¦è¡¨ç¾ã使ãã«ã¯ use utf8 ãå¿ é ã use utf8 ã§ã¯ \d 㨠\s 㨠\w ã®æåã¯ã©ã¹ã®å 容ã Unicode ã®ã«ãã´ãªã¼ã«åºã¥ãã¦ããã InDesignï¼Boostï¼ãåæ§ã PCRE ã Ruby ã¯å¤ãããªãã (2 åèè³æï¼perldoc ã® perlrecharclass åèè³æï¼Programming Perl ã® 5.4. Character Classes ã¡ãã£ã¨è©³ããè¦ã¦ããã¾ãã ï¼ä»¥éãPerl ï¼ use utf8 ã® Perl ã»ã¨ãã©å ¨ã¦ã®äººã [0-9] ã®10æåã¨ãã¦ä½¿ã£ã¦ãã¾ãããPerl ã§ã¯ \p{Nd} ã§ãããã ããPerlã®ãã¼ã¸ã§ã³ã«ãã£ã¦ï¼å¯¾å¿ãã¦ããUnicodeãã¼ã¸ã§ã³
大å£ããã®ããã°ã¨ã³ããªã«åºæ¿ãå¾ã¦ãå¤ãmb_eregã®æåã調æ»ãã¾ããããã®çµæã PHP4.2.xä¸ã®mb_eregã¯è¤æ°è¡ã¢ã¼ãã§åä½ãã¦ãããã¨ãåããã¾ããã®ã§å ±åãã¾ãã ååã¾ã§ã®ã¾ã¨ã ãæ£è¦è¡¨ç¾ã«ããããªãã¼ã·ã§ã³ã§ã¯ ^ 㨠$ ã§ã¯ãªã \A 㨠\z ã使ãããã«ã¦ãRubyãPerlãPHPã®æ£è¦è¡¨ç¾ã§ã¯ã^ 㨠$ ã¯ããè¡ãã®å é ã¨æ«å°¾ã示ãã¦ãã¦ãæååã®å é ã¨æ«å°¾ãæå®ããã«ã¯ã\A 㨠\z ã使ãã¹ãã§ãããã¨ã説æãã¾ãããããã¦ãRubyã®å ´åã¯ããã©ã«ããè¤æ°è¡ã¢ã¼ãã§ããã®ã§ã^âââ$ ã¨ããå½¢ã§å ¨ä½ä¸è´æ¤ç´¢ãæå®ããã¤ããã§ããç°¡åã«ãã§ãã¯ãããæãé大ãªèå¼±æ§ã«ç´çµãã¾ããä¸æ¹ãPerlãPHPã®æ£è¦è¡¨ç¾ã¯ããã©ã«ãã§ã¯åä¸è¡ã¢ã¼ãã§ããã®ã§ãæååæ«å°¾ã®æ¹è¡ããã§ãã¯ã§ããªãã¨ããåé¡ã¯ãããã®ã®ãé大ãªèå¼±æ§ã«ç´çµããã±ã¼ã¹ã¯ã
æ£è¦è¡¨ç¾ã«ããããªãã¼ã·ã§ã³çã§ãå®å ¨ä¸è´ã示ãç®ç㧠^ 㨠$ ãç¨ããæ¹æ³ãä¸è¬çã§ãããæ£ãã㯠\A 㨠\z ãç¨ããå¿ è¦ãããã¾ããRubyã®å ´å ^ 㨠$ ã使ã£ã¦å®å ¨ä¸è´ã®ããªãã¼ã·ã§ã³ãè¡ãã¨èå¼±æ§ãå ¥ããããã¯ãã¨ãªãã¾ããPerlãPHPã®å ´åã¯ãRubyç¨ã§ã¯ããã¾ãããä¸å ·åãçããã®ã§ \A 㨠\z ã使ãããã«ãã¾ãããã ã¯ãã㫠大å£ããã®ããã°ã¨ã³ããªãPHPeråããRuby/Railsã®è½ã¨ãç©´ãã«ã¯ãRubyã®è½ã¨ãç©´ã¨ãã¦ãå®å ¨ä¸è´æ¤ç´¢ã®æå®ã¨ãã¦ãæ£è¦è¡¨ç¾ã® ^ 㨠$ ãæå®ããä¾ããRuby on Rails Security Guideããã®å¼ç¨ã¨ãã¦ç´¹ä»ããã¦ãã¾ãã以ä¸ã®æ£è¦è¡¨ç¾ã¯ãXSS対çã¨ãã¦ãhttpã¹ãã¼ã ãããã¯httpsã¹ãã¼ã ã®URLã®ã¿ã許å¯ããæ£è¦è¡¨ç¾ã®ã¤ããã§ãã /^https?:\/\/[^\n]+$/
$str =~ /^--/m and print "è¤æ°è¡ã¢ã¼ãã§ããã\n"; $str =~ /<script.*?<\/script>/s and print "ä¸è¡ã¢ã¼ãã§ããã\n"; å®ç¾©ãåãããªãæ¹ã¯ãå¾è¿°ã§å®ç¾©ã解説ãã¦ãã¾ãã ä¸è¬ã« Perl ã§ã¯ ããã m// ãç½®æ s/// ã®å³å´ï¼å·¦å´ã§ã¯ãªããã¨ã«æ³¨æï¼ã«ä¼´ãä¸è¨ã® m ã s ã®ãããªè±æåã®ãã¨ã修飾å (modifier) ã¨è¨ãã¾ã (see: perlre)ã ç§ã¯ãããããééãããå¿ãããããã®ã§ããããªè¦ãæ¹ãèãã¦ã¿ã¾ããã ããããååãããããã ä¸è¡ã¢ã¼ã(Single line mode) m//s ã¯ãããã(.)ã ãè¤æ°è¡ã ã«ããã£ã¦ãããããããã«ãªã è¤æ°è¡ã¢ã¼ã(Multiple line mode) m//m ã¯ã"^" "$" ã ãä¸è¡ã ãã¨ã«ãããããããã«
2013å¹´02æ09æ¥22:30 ã«ãã´ãªTipsLightweight Languages regexp - 㧠Apache Combined Log ã Parse ãã ãã ãåæã ã¾ãã¦ã Apache Combined Log ã LTSV ã« ãæ¸ããå¾ã§ã¯ã combined2ltsv.plã®æåã®ãã¼ã¸ã§ã³ã®parserã¯ãããªã£ã¦ãã¾ããã sub parse_line_ng { my $line = shift; my %rec; ( $rec{host}, $rec{ident}, $rec{user}, $line ) = split ' ', $line, 4; $line =~ s/^(\[.*?\]) //; $rec{time} = $1; $line =~ s/^\"(.*?)\" //; $rec{req} = $1; ( $rec{status},
2011å¹´7æ6æ¥(æ°´)ã«mixiããã®æ°ãªãã£ã¹ããåããã¦éå¬ãã第16åShibuya.pmãã¯ãã«ã«ãã¼ã¯ãå¤ã®æ£è¦è¡¨ç¾ç¥ããã®ã¾ã¨ãã§ãã http://developer.cybozu.co.jp/takesako/2011/07/shibuyapm16-6ea5.html # å¤ã®æ£è¦è¡¨ç¾ç¥ã * 18:50 - Dan the (Irr|R)egular Expressionist - @dankogai ç¶ããèªã
Shibuya.pm #16 ãå¤ã®æ£è¦è¡¨ç¾ç¥ããã§ãæ£è¦è¡¨ç¾ã®ã話ãããã¦ããã ãã¾ããã ã¾ãããé»è©±çªå·ã«ãããããæ£è¦è¡¨ç¾ãã¨ããéµä¾¿çªå·ã«ãããããæ£è¦è¡¨ç¾ãã¨ãããæ¸ããã¦ããã©ããã©ãããããæç·©ããããã£ã¦è©±ã ããã ãã¶ã¯ããã£ãããªã ã¨ããããã¹ã©ã¤ãã«æ¸ããã®ã§ãçºè¡¨ãã覧ã«ãªã£ã¦ãªãæ¹ã¯ã¹ã©ã¤ãããã覧ãã ããã ãµã¨è¦è¿ãã¨ããã®ããã°ã§é»è©±çªå·ã®æ£è¦è¡¨ç¾ãå ¬è¡¨ããã®ã¯ 3 度ç®ã§ãããããããã ãã¶çµã£ã¦ã¾ããã ä»ã§ã¯ãã£ã¨å³å¯ãªæ£è¦è¡¨ç¾ãä½ã£ã¦ãã¾ãã ããã¦ãNumber::Phone::JP ã«ç¶ããNumber::ZipCode::JP ã¨ããé çãªã¢ã¸ã¥ã¼ã«ãå ¬éãããè¨å¿µã§ãéµä¾¿çªå·ã«ãããããæ£è¦è¡¨ç¾ãä»ååãã¦å ¬éãã¾ãããããããããã¾ã§å³å¯ãªæ£è¦è¡¨ç¾ãå ¬éããããã¨èªä½ãæ¬é¦åå ¬éã£ã¦ã¤ãã§ãããã Shibuya.pm ã§ãè¨ãã¾ããã
2011å¹´7æ6æ¥(æ°´)ã«Shibuya Perl Mongersãã¯ãã«ã«ãã¼ã¯#16ãå¤ã®æ£è¦è¡¨ç¾ç¥ãããéå¬ãã¾ããã http://shibuya.pm.org/blosxom/techtalks/201107.html ä»åã¯æ ªå¼ä¼ç¤¾ãã¯ã·ã£ããã®æ°ãªãã£ã¹ã®ã»ããã¼ã«ã¼ã ããåããã¦éå¬ãããã¨ã¨ãªãããã®å¾ã®æ親ä¼ãé£ã®ã³ã©ãã¬ã¼ã·ã§ã³ã«ã¼ã ã§éå¬ãããã¨ãã§ãã¾ãããç´ æµãªãªãã£ã¹ä½é¨ã§ããã ãã¼ã â ãå¤ã®æ£è¦è¡¨ç¾ç¥ãã æ¥æ â 2011å¹´7æ6æ¥(æ°´) 18:45-21:00 (18:30 éå ´) ä¼å ´ â ã150-0011 æ±äº¬é½æ¸è°·åºæ±1-2-20 ä½åä¸åç£æ¸è°·ãã¡ã¼ã¹ãã¿ã¯ã¼ 7F (æ ªå¼ä¼ç¤¾ãã¯ã·ã£) æé â ç¡æ å®å¡ â 110å (ãã¡ã°ã大ããªã»ããã¼ã«ã¼ã ) äºåç»é² â http://atnd.org/events/17082 ã«ã¦åå ç³
swatmac.info Buy this domain. 2020 Copyright. All Rights Reserved. The Sponsored Listings displayed above are served automatically by a third party. Neither the service provider nor the domain owner maintain any relationship with the advertisers. In case of trademark issues please contact the domain owner directly (contact information can be found in whois). Privacy Policy
æ£å¼ã«æ¥æ¬èªããã·ã¥ã¿ã°ã使ããããã«ãªã£ãã®ã§ãè²ã ããããçµæã以ä¸ã®æ£è¦è¡¨ç¾ã§ã»ã¼å ¬å¼ã¨åãåä½ã«ãªã£ãããã»ã¼ããªã®ã¯ã¡ããã¨ãã¹ããããããããªãã®ã§ã使ããªãèªå·±è²¬ä»»ã§ã©ããã sourcecode language=âtextâ([a-zA-Z0-9_\u3041-\u3094\u3099-\u309C\u30A1-\u30FA\u3400-\uD7FF\uFF10-\uFF19\uFF20-\uFF3A\uFF41-\uFF5A\uFF66-\uFF9E]+) ``` iPhoneã®å ¬å¼ã¯ã©ã¤ã¢ã³ãã ã¨ãªããåããéã£ããããããhalf-widthã®ã«ã¿ã«ãåæ¿ç¹ã¯ã ãã ã£ããã¨ããªãããã°ãªã®ãä»æ§ãªã®ããããããããåæ¿ç¹ãéãããã«ããããã°ãFF9EãFF9Fã«ããã°ãï½ã Tweet
Shibuya Perl Mongersãã¯ãã«ã«ãã¼ã¯#16 ã2011å¹´7æ6æ¥(æ°´)ã«mixiããã®æ°ãªãã£ã¹ããåããã¦éå¬ãã¾ãã ä»åã¯mixiããã®ãåæã«ãããã¯ãã«ã«ãã¼ã¯å¾ã«æ親ä¼ãéå¬ããäºå®ã¨ãªã£ã¦ããã¾ãã ãã¡ããæéã®è¨±ãéã奮ã£ã¦ãåå ããã ããã°ã¨æãã¾ãã ãã¼ã - ãå¤ã®æ£è¦è¡¨ç¾ç¥ãã æ¥æ - 2011å¹´7æ6æ¥(æ°´) 18:45-21:00 (18:30 éå ´) ä¼å ´ - ã150-0011 æ±äº¬é½æ¸è°·åºæ±1-2-20 ä½åä¸åç£æ¸è°·ãã¡ã¼ã¹ãã¿ã¯ã¼ 7F (æ ªå¼ä¼ç¤¾ãã¯ã·ã£) æé - ç¡æ å®å¡ - 110å (ãã¡ã°ã大ããªã»ããã¼ã«ã¼ã ) äºåç»é² - http://atnd.org/events/17082 ã«ã¦åå ç³ãè¾¼ã¿ãå¿ è¦ â æºå¡å¾¡ç¤¼ ä¸ç¶ - http://www.ustream.tv/channel/shibuya-per
Web ã¨ã³ã¸ãã¢ã§ããã°, Apache ã®ã¢ã¯ã»ã¹ãã°ã tail -f ã§æµããªãã確èªãããã¨ã¯å¤ãã®ã§ã¯ç¡ãã§ãããã. é常ã¯ç½é»ã§é常ã«è¦ã¥ããã¨æãã¾ãã, 以ä¸ã®è¨äºãåèã«, ã«ã©ãã«ã«ãã¦ã¿ã¾ãã. Rubyã§ANSIã«ã©ã¼ã·ã¼ã±ã³ã¹ãå¦ã¼ãï¼ (hp12) ä»åç¨æããã³ã¼ãã¯ãã¡ã. shebang ãåããã¦ããã£ã 4 è¡ã§ã. ãã¡ãã¯ãã°ãã©ã¼ãããã«ä¾åããã®ã§, ã注æãã ãã. combined ã vhost_combined ã¨ãã£ããã°ãã©ã¼ããããåæã¨ãã¦ãã¾ã. 以ä¸ã®ããã«ãã¦ä½¿ç¨ãã¾ã. $ tail -f /var/log/apache/path_to_access_log | ./colorize.rb å®éã®ä½¿ç¨ä¾ã¯, å³ã®ç»åã®éãã§ã. (ãã®ããã°ã®ã¢ã¯ã»ã¹ãã°ã§ã. IP çã¯æ å¤ã«ã¯ã¿åºããã¾ãã.) tail -f
æ¬å½ã§ã. ä¸çæéã®grep ä½ãã¾ãã. ãã®ãã¿ã§å¦ä¼çºè¡¨ã¨ããã¾ãã. #=> JSSST, ããã°ã©ãã³ã°ã»ã·ã³ãã¸ã¦ã ãåçãªã³ã¼ãçæãç¨ããæ£è¦è¡¨ç¾ãããã£ã®å®è£ ã æè¿... ãä¸çæéã®grepãã¨ã¯ãããã§ãç 究室å ã§ç¸æã«ãããªããªã£ã¦ãã¾ãã. å 輩ãã¸ã, ãããªã®.ã ååãã¯ãã¯ãæéæé.ã å¾è¼©ãgrepã£ã¦ãªãã§ãã?ã å çããããªãã¨ãã並ååã¯? è±èªã§è«ææ¸ãã¦. PS3ä¸ã§åããã¦.....ã
ãã®ãã¡ã¤ã³ãè³¼å ¥ããã gkbr.me 2018 Copyright. All Rights Reserved. The Sponsored Listings displayed above are served automatically by a third party. Neither the service provider nor the domain owner maintain any relationship with the advertisers. In case of trademark issues please contact the domain owner directly (contact information can be found in whois). Privacy Policy
PHPã§æ£è¦è¡¨ç¾ãæ±ãä¸ã§ãæ£è¦è¡¨ç¾ãã¿ã¼ã³ã®è¨è¿°ã§è¿·ã£ã¦ãã¾ã£ã¦ãã人ãå¤ãæ°ãããã PHPãæååãçæãã ãã®æååãæ£è¦è¡¨ç¾ã¨ã³ã¸ã³ã«æ¸¡ã ã¨è¨ã2段éã®æé ãããããããããè¤éãªã®ã§æ··ä¹±ãæãé¨åãããã®ã ã¨æãã æ··ä¹±ãé²ãããã«ã¯ããã®æé ããã£ãã追ã£ã¦ãæ£è¦è¡¨ç¾ãªãã©ã«ã¨ãã¦æå®ãã¦ããæååãechoãããPHPãã©ã®ããã«åºåããããèãã¦ã¿ãã¨è¯ãã ä¾ãã°ä»¥ä¸ã®ãããªã³ã¼ãããã£ãã¨ããã preg_match('/\\d/','3d'); ã¾ããpreg_match()ã®ç¬¬ä¸å¼æ°ã«ãªã£ã¦ããæ£è¦è¡¨ç¾ãã¿ã¼ã³ãechoã§åºåããã¨ã©ããªãããèããã echo '/\\d/'; #/\d/ ãªã®ã§ã/\d/ãæ£è¦è¡¨ç¾ã¨ã³ã¸ã³ã«æ¸¡ãããã¨åããããªã®ã§ãä¸è¨ã®ãã¿ã¼ã³ã¯ãããããã ããã«æ··ä¹±ãæãããããã¦ããã®ããPHPã®æååã®ä»æ§ã§ãç¹ã«ããã¯ã¹ã©ãã·
HiFi RegExp Tool - Write and Test Regular Expressions in Real-Time ãã®å ´ã§åä½ããã¦ç¢ºèªããæ£è¦è¡¨ç¾å ¥éãã¼ã«ãHiFi RegExp Toolã ããã¯ã¹ã®ä¸ã«ãæ£è¦è¡¨ç¾ãå ¥ããã ãã§ããªã¢ã«ã¿ã¤ã ã«ãã¼ã¸ã®å 容ãæ£è¦è¡¨ç¾ã«æ²¿ã£ã¦ãããã³ã°ï¼ãã¤ã©ã¤ã表示ãããã©ã®æ£è¦è¡¨ç¾ãã©ãããæå³ã表ãã®ãã¨ããã®ãä¸ç®ã§è¶ ã¯ã¤ãã¯ã«åãã£ã¦ãã¾ã便å©ãã¼ã«ã§ãã ããã¯ã¹ã«å ¥ããããæ£è¦è¡¨ç¾ã«æ²¿ã£ã¦æ¬¡ã®ããã«ããã¤ã©ã¤ã表示ããã¦ãã«ã©ãã«ã«è²åããã¦ããã¾ãããããããããã¹ãã®ä¸è¦§ããã¼ã¸ä¸é¨ã«è²ä»ãã§åããããã表示ãã¦ããã¾ãã ãã¼ã¸å ã®ããã¹ãã¯ã¯ãªãã¯ãããã¨ã§èªç±ã«æ¸ãæãããã¨ãå¯è½ã§ãã ãµã¤ããã¼ã«ã¯æ£è¦è¡¨ç¾ã®ãã¼ãã·ã¼ããæ²è¼ããã¦ãã¾ãã ããã¯ããªã便å©ãæ£è¦è¡¨ç¾å ¥éã®é«ééè·¯ã§ããã
â» ç»é¢ã¯å ¬å¼ãµã¤ããã Webã¢ããªã±ã¼ã·ã§ã³ãéçºããããããã³ã¼ãã£ã³ã°éãå°ãªãã·ã¹ãã ãéçºããä¸ã§æ£è¦è¡¨ç¾ã®åå¨ã¯æ¬ ãããã¨ãã§ããªããè¯ãæ£è¦è¡¨ç¾ãçµãããã©ããã§è¦éãã®è¯ãã·ã¹ãã ãã§ãããã©ãã決ã¾ã£ã¦ããã ããã Named captureãJavaScriptã§ã æããããæ£è¦è¡¨ç¾ã§ã¯ããããJavaScriptã§ãµãã¼ãããã¦ãããã®ã¯æ©è½ããã¾ãå¤ããªããä»ã®ããã°ã©ãã³ã°è¨èªåçã®ã¬ãã«ã«å¼ãä¸ãã¦ãããã®ãXRegExpã ã ä»åç´¹ä»ãããªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã§ã¢ã¯XRegExpãJavaScriptã®æ£è¦è¡¨ç¾ãæ©è½å¼·åããã©ã¤ãã©ãªã ã XRegExpã¯é常使ããæ£è¦è¡¨ç¾æ©è½ã«å ãã¦ãå¹¾ã¤ãã®æ©è½è¿½å ãè¡ã£ã¦ãããç¹å¾´çãªãã®ã¨ãã¦ã¯ãNamed captureãããã ãããããã¯æ£è¦è¡¨ç¾ã®ãããã³ã°çµæã$1ã$2ã§ã¯ãªããæå®ããååï¼nameãv
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}