Regular expression visualizer using railroad diagrams
ç¹ã«ä½ãç®çããããããããªããã§ãããJavaScriptã®ç·´ç¿ã®ããã«ã²ã¼ã ãä½ã£ã¦ã¿ã¾ããã Regex Of The Dead ã¿ã¤ãã³ã°ã²ã¼ã ã®ããã«æ£è¦è¡¨ç¾ãç·´ç¿ããããã®ã·ã³ãã«ãªã²ã¼ã ã§ããã¾ã³ãã¨ä¸è¬äººãè¿«ã£ã¦ããã®ã§ã¾ã³ãã®ååã«ã ããããããããã«æ£è¦è¡¨ç¾ãå ¥åãã¦åãã¦ããã¾ãã HTML5ã®æµãã§ãªã¼ãã£ãªãã°ã©ãã£ãã¯ããã©ã³ããHTML/JavaScriptã§ç°¡åã«æ±ããããã«ãªããããã«enchant.jsã®ãããªã²ã¼ã ã¨ã³ã¸ã³ãå å®ãã¦ãã¦ãã²ã¼ã ãJavaScriptã ãã§æ°è»½ã«ä½ããããã«ãªã£ã¦ããããã§ãã ãããªããã§è©¦ãã«æ¸ãã¦ã¿ãã®ãRegex Of The Deadã§ããããã°ã©ãã³ã°ã¯é·ããã¨ãã£ã¦ãããã®ã®ã²ã¼ã ãä½ã£ãã®ã¯å¤§å¦ã®ã¨ã以æ¥ããããã¾ããã æåãä½ãè¯ããããªã²ã¼ã ã¨ã³ã¸ã³ããªããã®ãããã¤ã調æ»ãã¾ãããããããã£ãã¿ã¤
Scriptular is a javascript regular expression editor. Inspired by Rubular it gives you a simple way to test javascript regular expressions as you write them. Start by entering a regular expression and then a test string. Or give this example a try. Learn more about regular expressions in javascript.
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
ï¼ï¼ã§ã \ãã¼ã¯ã«é¢ãã¦ã¯ãé常stringåã®ãªãã©ã«ã¨ãã¦å¤æ°ã«ä»£å ¥ããå ´åãã¨ã¹ã±ã¼ããå¿ è¦ã§ã ãªã®ã§ãã¾ãå¤æ°ã®ä»£å ¥ã®æç¹ã§ //ä¾ å¤æ°str ã« ?|\ ã¨ããæååãä»£å ¥ããããå ´å str = "?|\\"; ã¨ãªãã¾ã ã¾ããããã¨ã©ã¼ã®åå ã«ãªã£ã¦ããå¯è½æ§ã®ä¸ç¹ç® ããã¦ããã²ã¨ã¤ããRegExpå ã§ã åå説æããããã«RegExp -> replaceã¨æ¸¡ãã®ã§"ã¨ã¹ã±ã¼ãã®\"ã表ãããã«ãæ´ã«ã¨ã¹ã±ã¼ããå¿ è¦ã§ã jsã® (\\?|\\|) ã¨perlã® (\?|\|) ãæ¯ã¹ãã¨ããããããã§ããã\ãåå¿ è¦ã«ãªãã¨ãããã¨ã§ã replaceå ã§ã¨ã¹ã±ã¼ãã§ã¯ãªãæååã®\ãã¼ã¯ ï¼ï¼ç¹ç®ã§æããããã« \\ ã渡ãããã®ã§ã RegExpå ã§ã¯\\両æ¹ãã¨ã¹ã±ã¼ããã¦ãããå¿ è¦ãããã¾ã ã¤ã¾ããããã©ããããã¨ã«ãªãã¾ããã\\\\ ã¨ãªãããã§ã
æ£è¦è¡¨ç¾ã§ã¯å¦å®ã®å èªã¿ãå©ç¨ãããã¨ãã§ãã¾ããããã§ã¯ Ruby ã®æ£è¦è¡¨ç¾ã§å¦å®ã®å èªã¿ã使ç¨ããæ¹æ³ã«ã¤ãã¦è§£èª¬ãã¾ãã
ãã®ãã¡ã¤ã³ãè³¼å ¥ããã 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
æ£è¦è¡¨ç¾ã«é¢ãã¦ã¯ãªãã©ã«/æ£è¦è¡¨ç¾ãªãã©ã«ã$&ã Regexp ãã㦠MatchData ãªã©ãåç §ãã¦ä¸ããã æ£è¦è¡¨ç¾è¨å· å¾æ¹åç § æåã¯ã©ã¹ ããã¯ãã©ã㯠ãµã³ãã« æ£è¦è¡¨ç¾è¨å· 以ä¸ã¯ãruby ããµãã¼ãããæ£è¦è¡¨ç¾è¨å·(ã¡ã¿æå)ã®ä¸è¦§ã§ãã (æ£è¦è¡¨ç¾ã®ãªãã·ã§ã³ã«ã¤ãã¦ã¯ãªãã©ã«/æ£è¦è¡¨ç¾ãªãã©ã«ãåç §ãã¦ãã ãã) \ãä¼´ããªãè±æ°å ã¯ã¡ã¿æåã§ã¯ãªã \ãä¼´ãè¨å· ã¯ã¡ã¿æåã§ã¯ãªã(`\*'ã¯ãç¹°ãè¿ããã§ãªããã¢ã¹ã¿ãªã¹ã¯ã) ã¨ããè¦åãããã¾ãã 以ä¸ã®èª¬æã®ä¸ã§ãå¤ãã¤ãæåã«å¯¾å¿ããæ£è¦è¡¨ç¾ãã¨ã¯ã $KCODE ãè¨å®ããã¦ãããããããã¯æ示çã«æ¼¢åãªãã·ã§ ã³(ãªãã©ã«/æ£è¦è¡¨ç¾ãªãã©ã«ãåç §)ãæå®ãããªã©ã«ããå¤ãã¤ãæå ã«ããããå¾ãæ£è¦è¡¨ç¾ãæãã¾ãã ^ è¡é ãæååã®å é ãæ¹è¡æåã®ç´å¾ã®ä½ç½®ã«ããããã¾ãã $ è¡æ«ãæåå
ååæ稿ããåè§/å ¨è§ããªãã¼ã¿ã®æ£è¦è¡¨ç¾ã®ä¸èº«ã解説ãã¾ãã ååã¯ãrubyã§ä½¿ããåè§/å ¨è§ããªãã¼ã¿ãç´¹ä»ãã¾ããã ãã®ã½ã¼ã¹ã¯çªè²«å·¥äºçã«æ¸ãããã®ãªã®ã§ãå®ã¯èªåã§ãä»çµã¿ãç解ããªãã¾ã¾ã§ããã ã§ããããããããããããï¼ãã£ã¦ãã¨ã§ãï¼ã¤ãã¤èª¿ã¹ã¦ã¿ã¾ããã 以ä¸ãã½ã¼ã¹åæ²â KCODE = 'u' def self.hankaku?(str) return nil if str.nil? # åè§ã®ã¿OKãªã®ã§ãå ¨è§ãæ··ãã£ã¦ããã¨falseãè¿ã unless str.to_s =~ /^[ -~。-ï¾]*$/ return false end return true end def self.zenkaku?(str) return nil if str.nil? # å ¨è§ã®ã¿OKãªã®ã§ãåè§ãæ··ãã£ã¦ããã¨falseãè¿ã unless str.to_
rubyã§æååãåè§ã®ã¿ã§æ§æããã¦ãããããããã¯å ¨è§ã®ã¿ãªã®ããå¤å®ããæ£è¦è¡¨ç¾ã¯ä»¥ä¸ã®ããã«ãªãã¾ãã
ããã«ã¡ã¯ãæ«äºã§ãã ä»åã¯æ£è¦è¡¨ç¾ã«ã¤ãã¦å°ãã ããå±ããã¦ã¿ããã¨æãã¾ãã éããªãã·ã³ãã«ã«ã¾ã¨ãã¦ã¿ã¾ãã®ã§ã¨ã³ã¸ãã¢ãªæ¹ã«ã¯å ¨ãå¿ è¦ãªãå 容ã§ãããå ¥éç¨ã¨ãã¦é£ã§ä¸çæ¸å½ã³ãããé£æãã¦ãããã£ã¬ã¯ã¿ã¼ãªã©ã«æãã¦ããã¦ãã ããã â æ£è¦è¡¨ç¾ã£ã¦ãªã«ï¼ 端çã«è¨ãã°ããããã¤ãã®æååãä¸ã¤ã®å½¢å¼ã§è¡¨ç¾ããããã®è¡¨ç¾æ¹æ³ãã§ãã ãµã«ã«ããããæ£è¦è¡¨ç¾å ¥é ã¨ããããã«ãä¸å®ã®æ¡ä»¶ã§æ¸ãããæååãç°¡åã«ç¹å®ããæ¹æ³ã§ãã ç°¡åã¨æ¸ãã¾ããããããã¾ãããåã§ããé常ã«å¥¥ãæ·±ãã®ã§ç§ã¯å ¥ãå£ãããã§æ«æããã¾ã¾ã§ãããæ£è¦è¡¨ç¾ãã¤ãããï¼ããªãã¦è¨ã£ã¦ãã¾ãã¾ããããç§ãç¥ã£ã¦ãã®ã¯ãã£ãï¼ã¤ã ãã§ãã â ãã£ãï¼ã¤ã®æ£è¦è¡¨ç¾ ããããªã®æ£è¦è¡¨ç¾ã£ã¦ãããªããï¼ãã¨ããããã³ããç®ã«æµ®ãã¶ããã§ãããç§ã使ã£ã¦ããã®ã¯ãã®ï¼ã¤ã ãã§ãã \n \t ããã ãã§ãã \nãã¯
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}