Rego - A Go regular expression tester

文章推薦指數: 80 %
投票人數:10人

Rego. A Go regular expression tester. Your regular expression : Test string : rego. Find all submatch. Clear all fields. Match : rego. Match groups : ... Rego AGoregularexpressiontester Yourregularexpression: Teststring: rego Findallsubmatch Clearallfields Match: Matchgroups: # GroupName GroupMatch GoRegExpQuickReference(©Rubular) [abc] Asinglecharacterof:a,borc [^abc] Anysinglecharacterexcept:a,b,orc [a-z] Anysinglecharacterintherangea-z [a-zA-Z] Anysinglecharacterintherangea-zorA-Z ^ Startofline $ Endofline \A Startofstring \z Endofstring . Anysinglecharacter \s Anywhitespacecharacter \S Anynon-whitespacecharacter \d Anydigit \D Anynon-digit \w Anywordcharacter(letter,number,underscore) \W Anynon-wordcharacter \b Anywordboundary (...) Captureeverythingenclosed (a|b) aorb a? Zerooroneofa a* Zeroormoreofa a+ Oneormoreofa a{3} Exactly3ofa a{3,} 3ormoreofa a{3,6} Between3and6ofa Fullsyntaxreferenceathttp://code.google.com/p/re2/wiki/Syntax.GoRegExpdocathttp://golang.org/pkg/regexp/. BuiltbySteveDomin.InspiredbyRubular.Youcanfindthesourcesatgithub.com/stevedomin/rego.



請為這篇文章評分?