ãæ¤ç´¢âç½®æãã§ã以ä¸ã®å 容(æååã®å ¥åã¯ããã«å²ã¾ããé¨å)ãå ¥åãã¦ãç½®æãå®è¡ãã¦ä¸ããã æ¤ç´¢æååï¼ ã[ ã\t]+$ã ç½®ææååï¼ ãã(ä½ãè¨å ¥ããªã) ãæ£è¦è¡¨ç¾ãã®ãã§ãã¯ããã¯ã¹ã«ãã§ãã¯ããã â» æ¤ç´¢æååã®"["ã¨"]"ã§å²ã¾ããé¨åã®ç©ºç½ã«ã¯ãåè§ç©ºç½ã¨å ¨è§ç©ºç½ãå ¥ã£ã¦ãã¾ãã
Updated 2011.05.13 / Published 2011.05.13 Twitterã®ããã·ã¥ã¿ã°ã¨ã¢ã«ã¦ã³ãå(ã¹ã¯ãªã¼ã³ãã¼ã )ããªã³ã¯ã«ç½®ãæããæ£è¦è¡¨ç¾ã¨åãæ£è¦è¡¨ç¾ã®è¨æãµããã¿ã¼ã³ãç¨ãããã¿ã§ããä»åã¯ãhttp://ã ã®ä¸é£ã®URLãæ§æããæååããªã³ã¯ã«ç½®ãæããå ´åã®æ£è¦è¡¨ç¾ã«ã¤ãã¦ç´¹ä»ãã¾ãã ã¦ã¼ã¶ããã®ãã¼ã¿å ¥åãåãä»ããã·ã¹ãã ã§ããã°ãhttp://ã ã®URLãæ§æããæååããªã³ã¯ã«ç½®ãæããããããã¨ã¯å°ãªããªãã¯ãã§ããã¾ããèªãµã¤ãå ã®URLãè²¼ä»ããããå ´åã¨ä»ãµã¤ãã®URLãè²¼ä»ããããå ´åã¨ã§ããã ãªã³ã¯ã«ç½®æããã ãã§ãªããä»ãµã¤ãã«ã¯ target="_blank" ã rel="nofollw" ãä»ããããªã©ãå¦çãå¥ãããã¨ããå ´åãå°ãªããªããã¨æãã¾ãã 大æ¦ã¯ ifæã« preg_matché¢æ°çãç¨ãã¦ãèª
ãã¶ããã®è¾ºæ¢ãã°ãã£ã±ãããã¨æããã©åå¿é²ã http://foo.bar/spam/ham ã¨ããã http://foo.bar/ ã ãæãåºãä¾ã String uri = "http://foo.bar/spam/ham"; String domain = null; Pattern p = Pattern .compile("https?:\\/\\/[-_.!~*'()a-zA-Z0-9;?:\\@&=+\\$,%#]+\\/"); Matcher m = p.matcher(uri); if (m.find()) { domain = m.group(0); } //assertEquals("http://foo.bar/", domain);ã¨ããããåãã¦ãã£ã½ãã¬ãã«ã§ã¡ããã¨ãã¹ãã¨ããã¦ãªãã㧠èªå·±è²¬ä»»ã§ã
ãããããã¼ã«ã§ã¯ããããæè¿æ£è¦è¡¨ç¾ãåå¼·ããªãããã®ã§ãç´¹ä»ã Scriptularã§ã¯ãã¤ã³ã¿ã©ã¯ãã£ãã«æ£è¦è¡¨ç¾ã試ããã¨ãã§ããããã ã ã¨ã³ã¸ã³ã¨ãã¦ä½¿ã£ã¦ããã®ã¯JavaScriptã®ããã ãã¯ã©ã¤ã¢ã³ããµã¤ãã ãã§è©¦ããã®ã§ããããåãã¦ããæãã ã ã¾ãå³æ¨ªã«ã¯ãªãã¡ã¬ã³ã¹çã«èª¬æãããã®ã§ãã¡ãã¡ã©ãããæ¤ç´¢ããå¿ è¦ããªãã ããããæ£è¦è¡¨ç¾ãã»ã»ã»ã¨ããæ¹ã¯è©¦ãã¦ã¿ã¦ã¯ããããããã
Shibuya.pm #16 ãå¤ã®æ£è¦è¡¨ç¾ç¥ããã§ãæ£è¦è¡¨ç¾ã®ã話ãããã¦ããã ãã¾ããã ã¾ãããé»è©±çªå·ã«ãããããæ£è¦è¡¨ç¾ãã¨ããéµä¾¿çªå·ã«ãããããæ£è¦è¡¨ç¾ãã¨ãããæ¸ããã¦ããã©ããã©ãããããæç·©ããããã£ã¦è©±ã ããã ãã¶ã¯ããã£ãããªã ã¨ããããã¹ã©ã¤ãã«æ¸ããã®ã§ãçºè¡¨ãã覧ã«ãªã£ã¦ãªãæ¹ã¯ã¹ã©ã¤ãããã覧ãã ããã ãµã¨è¦è¿ãã¨ããã®ããã°ã§é»è©±çªå·ã®æ£è¦è¡¨ç¾ãå ¬è¡¨ããã®ã¯ 3 度ç®ã§ãããããããã ãã¶çµã£ã¦ã¾ããã ä»ã§ã¯ãã£ã¨å³å¯ãªæ£è¦è¡¨ç¾ãä½ã£ã¦ãã¾ãã ããã¦ãNumber::Phone::JP ã«ç¶ããNumber::ZipCode::JP ã¨ããé çãªã¢ã¸ã¥ã¼ã«ãå ¬éãããè¨å¿µã§ãéµä¾¿çªå·ã«ãããããæ£è¦è¡¨ç¾ãä»ååãã¦å ¬éãã¾ãããããããããã¾ã§å³å¯ãªæ£è¦è¡¨ç¾ãå ¬éããããã¨èªä½ãæ¬é¦åå ¬éã£ã¦ã¤ãã§ãããã Shibuya.pm ã§ãè¨ãã¾ããã
HiFi RegExp Tool - Write and Test Regular Expressions in Real-Time ãã®å ´ã§åä½ããã¦ç¢ºèªããæ£è¦è¡¨ç¾å ¥éãã¼ã«ãHiFi RegExp Toolã ããã¯ã¹ã®ä¸ã«ãæ£è¦è¡¨ç¾ãå ¥ããã ãã§ããªã¢ã«ã¿ã¤ã ã«ãã¼ã¸ã®å 容ãæ£è¦è¡¨ç¾ã«æ²¿ã£ã¦ãããã³ã°ï¼ãã¤ã©ã¤ã表示ãããã©ã®æ£è¦è¡¨ç¾ãã©ãããæå³ã表ãã®ãã¨ããã®ãä¸ç®ã§è¶ ã¯ã¤ãã¯ã«åãã£ã¦ãã¾ã便å©ãã¼ã«ã§ãã ããã¯ã¹ã«å ¥ããããæ£è¦è¡¨ç¾ã«æ²¿ã£ã¦æ¬¡ã®ããã«ããã¤ã©ã¤ã表示ããã¦ãã«ã©ãã«ã«è²åããã¦ããã¾ãããããããããã¹ãã®ä¸è¦§ããã¼ã¸ä¸é¨ã«è²ä»ãã§åããããã表示ãã¦ããã¾ãã ãã¼ã¸å ã®ããã¹ãã¯ã¯ãªãã¯ãããã¨ã§èªç±ã«æ¸ãæãããã¨ãå¯è½ã§ãã ãµã¤ããã¼ã«ã¯æ£è¦è¡¨ç¾ã®ãã¼ãã·ã¼ããæ²è¼ããã¦ãã¾ãã ããã¯ããªã便å©ãæ£è¦è¡¨ç¾å ¥éã®é«ééè·¯ã§ããã
Smashing Magazine - WE SMASH YOU WITH THE INFORMATION THAT WILL MAKE YOUR LIFE EASIER, REALLY. æååãå¦çããã«ããã£ã¦æ£è¦è¡¨ç¾ã¯æ¬ ãããªãæ©è½ã¨ããããä»»æã®æååãããã¹ããã¡ã¤ã«ãHTML/XMLããç¹å®ã®ãã¼ã¯ã¼ããæ¤ç´¢ãããåãåºããç½®æããããªãã«ããã£ã¦ãæ£è¦è¡¨ç¾ã使ããã¨ä½¿ããªãã®ã¨ã§ã¯ãããã°ã©ãã³ã°ã®æéããã¼ã«ã®æ´»ç¨åº¦åããå¤ãã£ã¦ããã æ£è¦è¡¨ç¾ã¯ä¾¿å©ã§å¼·åãªæ©è½ã ãããã®ç¬ç¹ã®è¡¨è¨æ¹æ³ã¯ããã°ã©ãåå¿è ã«ã¯æ·å± ã®é«ããã®ã§ããããGlen Stansberryæ°ã«ããæ£è¦è¡¨ç¾ã«é¢ãããã¥ã¼ããªã¢ã«ãè³æããã¼ã«ãªã©ã®ã¾ã¨ããSmashing Magazineã«Essential Guide To Regular Expressions: Tools and Tutori
HDDãªã©ã«ä¿åãããè¤æ°ã®ããã¹ããã¡ã¤ã«ãè¤æ°ã®ãã¼ã¯ã¼ãã§ä¸æ¬æ¤ç´¢ã§ããGREPæ¤ç´¢ã½ãããè¤éãªæ£è¦è¡¨ç¾ã使ããã«ãè¤æ°ã®æ¡ä»¶æãâAndâãâOrâã§çµã¿åããã¦æ¤ç´¢ã§ãããããæ£è¦è¡¨ç¾ãç¥ããªã人ãæ£è¦è¡¨ç¾ãè¦æãªäººã«ãå§ããæ¤ç´¢å¯¾è±¡ã®ãã¡ã¤ã«ã¯ã¯ã¤ã«ãã«ã¼ãã使ãããã©ã«ãåä½ã§æå®ã§ãããã¾ãæ¤ç´¢æ¡ä»¶ã¨ãã¦ãä»»æã®å ¥åãã¼ã¯ã¼ãã«âãå«ãã»å«ã¾ãªãââããå§ã¾ãã»å§ã¾ããªãââã§çµããã»çµãããªãâãªã©ãä»å ããæ¡ä»¶æãä½ã£ã¦ãªã¹ãç»é²ãã¦ããããããã®æ¡ä»¶æãâAndâãâOrâãæ¬å¼§ã§çµã¿åãããæ¡ä»¶å¼ãä½æãããå¿ è¦ã«å¿ãã¦å¤§æåã¨å°æåã®åºå¥ãè¡é ã»è¡æ«ã®ç©ºç½ã®ç¡è¦ãªã©ã®ãªãã·ã§ã³ãé¸æãããã¨ã¯ï¼»å®è¡ï¼½ãã¿ã³ãæ¼ãã°OKãä¸è´ãããã¡ã¤ã«ã®ãã«ãã¹ã¨å½è©²è¡ãè¨ããããã¹ããã¡ã¤ã«ãåºåããããã¡ã¢å¸³ãã¾ãã¯äºåã«ç»é²ããããã¹ãã¨ãã£ã¿ã¼ã§éããã¨ãã§ããããªãã
ä»æ¥ã®æ£è¦è¡¨ç¾Tips (2008/10/05) \d 0ã9ã®æ°åã表ãæ£è¦è¡¨ç¾ã§ãã \D æ°å以å¤ã表ãæ£è¦è¡¨ç¾ã§ãã æ£è¦è¡¨ç¾ã§ã¯å°æåã大æåã«ãªãã¨å対ã®æå³ãæã¡ã¾ãã ãã¼ã« æ£è¦è¡¨ç¾ãã§ãã«ã¼ æ£è¦è¡¨ç¾Tipsé Tips ãã®ï¼ Tips ãã®ï¼ ããã¹ãç·¨éã§å½¹ç«ã¤ãæ£è¦è¡¨ç¾ã®ãµã³ãã«éãã詳ãã説æã¤ãã§ç´¹ä»ã æ£è¦è¡¨ç¾ã使ã£ã¦ããã¹ãæ¤ç´¢ï¼ç½®æãã¦ä»äºã®å¹çã¢ãããå³ããã ⪠ã¡ãã¥ã¼ â« ï¼ï¼æ£è¦è¡¨ç¾ã¨ã¯ãªã«ãï¼ ï¼ï¼æ£è¦è¡¨ç¾ã使ãæºå ï¼ï¼æ£è¦è¡¨ç¾ãµã³ãã«éãæ¤ç´¢ç·¨ã ï¼ï¼æ£è¦è¡¨ç¾ãµã³ãã«éãç½®æç·¨ã ï¼ï¼æ£è¦è¡¨ç¾ã®ãåå¼·ã¨æ¬ã®ç´¹ä» ï¼ï¼ã¨ãã£ã¿ã®å¼·èª¿è¡¨ç¤ºã§ããã¹ãã«è²ã¥ã ï¼ï¼ããã°ã©ã ã§æ£è¦è¡¨ç¾ã使ã ï¼ï¼æ£è¦è¡¨ç¾ãµã³ãã«ãªã¯ã¨ã¹ã
English ç´¹ä» ï¼Excelç¨æ£è¦è¡¨ç¾æ¤ç´¢ã»ç½®æãã¤ã¢ãã°ï¼ æ©è½æ¦è¦ æ£è¦è¡¨ç¾ã«ããæ¤ç´¢ã»ç½®æãã¤ã¢ãã°ã表示ããExcelã¢ãã¤ã³ã§ãã ã¨ã¯ã»ã«ã§æ£è¦è¡¨ç¾ã使ç¨ããæè»ãªæ¤ç´¢ãè¡ãã¾ãã ã¤ã³ã¿ã¼ãã§ã¼ã¹ãã¨ã¯ã»ã«æ¨æºã®æ¤ç´¢ã«è¿ãã®ã§ä½¿ãæãã¨æãã¾ãã é¡ä¼¼ã½ããã¨æ¯è¼ãã¦ä»¥ä¸ã®ç¹å¾´ãããã¾ãã ã»æ¬¡ãæ¤ç´¢ãåãæ¤ç´¢ã§ã®é 次æ¤ç´¢â¦ãã¹ã¦æ¤ç´¢ã®ã¿ãå¤ãã ã»æ¤ç´¢å¦çã¨æ¤ç´¢ã¯ã¼ã¯ã·ã¼ãé¢æ°ã®äºåæµâ¦ã©ã¡ããä¸æ¹ã®ãã®ãå¤ãã ã»VBScriptï¼.NET Frameworkã.NET FrameworkãOnigmoã®è¤æ°æ£è¦è¡¨ç¾ã¨ã³ã¸ã³å¯¾å¿ â¦VBScriptã®ã¿ãä¸è¬çã.NET Frameworkãåãå ¥ãããã¨ã§æ»ãèªã¿ãå¯è½ã 主ã«ä»¥ä¸ã®æ©è½ãããã¾ãã ã»æ£è¦è¡¨ç¾ã«ããæ¤ç´¢ãç½®æ ã»æ£è¦è¡¨ç¾ã«é¢ããã¯ã¼ã¯ã·ã¼ãé¢æ° ã»ãªã¼ãã·ã§ã¤ãã®æ¤ç´¢ãç½®æãGrepãGrepç½®æ
Blog Post Featured post Industrial Vs Non Industrial Plasma Cutting Machines Continue reading Points to Note When Shopping for a Washing Machine There are different washing machines brands in New Zealand. When shopping, therefore, you need to ensure that first, you get a quality machine; a machine that will last through many years without breaking down. You check product warranties and reviews whe
ã¡ã¼ã«ã¢ãã¬ã¹ãã§ãã¯ï¼æ£è¦è¡¨ç¾ï¼ ãµã³ãã«ãè¦ã<script type="text/javascript"> /** * [é¢æ°å] chkRegEmail * [æ©ãè½] æ£è¦è¡¨ç¾ã«ããã¡ã¼ã«ã¢ãã¬ã¹ï¼E-mailï¼ãã§ã㯠* [å¼ãæ°] * @param str å ¥åãããæåå * [è¿ãå¤] * @return true(E-mailå½¢å¼ã§ããå ´å) | false(E-mailå½¢å¼ã§ãªãå ´å) */ function chkRegEmail(str){ /* E-mailå½¢å¼ã®æ£è¦è¡¨ç¾ãã¿ã¼ã³ */ /* @ãå«ã¾ãã¦ãã¦ãæå¾ã .(ããã)ã§ãªããªãæ£ããã¨ãã */ var Seiki=/[!#-9A-~]+@+[a-z0-9]+.+[^.]$/i; /* å ¥åãããå¤ããã¿ã¼ã³ã«ãããããã調ã¹ã */ if(str!=""){ if(
ã»ãã¿ã¼ã³ããããµã³ãã« JavaScriptã§ã®ãã¿ã¼ã³ãããã®ãµã³ãã«ãè¼ãã¦ããã¾ãã âä»»æã®æåã«ä¸è´ æ¸å¼ï¼/æå/ ä¾ï¼ï¼"abcdefg".match(/a/) çµæï¼a ä¾ï¼ï¼"abcdefg".match(/cde/) çµæï¼cde ä¾ï¼ï¼"abcdefg".match(/xyz/) çµæï¼null âæ¹è¡æåãé¤ãä»»æã®ï¼æåã«ããã æ¸å¼ï¼/.æå/ ä¾ï¼ï¼"abcdefg".match(/.f/) çµæï¼ef âè¤æ°åã®æåã«ããã æ¸å¼ï¼/../ãï¼.ã¯ãããããåæ°ä¸¦ã¹ãï¼ ä¾ï¼ï¼"abcdefg".match(/.f/) çµæï¼ef âæå®æåã®ããããã«ããã æ¸å¼ï¼/[ä»»ææå]/ ä¾ï¼ï¼"abcdefg".match(/[ahg]/) çµæï¼a âæå®æå以å¤ã®ããããã«ããã æ¸å¼ï¼/[^ä»»ææå]/ ä¾ï¼ï¼"abcdefg".match(/[^ah
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}