Debuggex: Online visual regex tester. JavaScript, Python, and ...
文章推薦指數: 80 %
Test your regex by visualizing it with a live editor. JavaScript, Python, and PCRE. Pricing Blog Tutorial Login/Signup Share CodeSnippet Usingregexesforextractingdatafromwebpages?Checkout ParseHub, avisualwebscrapingtoolbuiltbytheteambehindDebuggex. {{reMetaModel.title}} {{reMetaModel.description}} DoneEditing EmbedonStackOverflow ViewCheatsheet VisualModeTextMode {{nfaModel.error.msg}} Result: Matches Doesnotmatch startingattheblacktriangleslider UnitTests (showhide) Help Addnewunittest Logintoaddunittests Youhaven'taddedanyunittestsyet {{unitTestModel.tests.length}}TotalTests: Passing({{unitTestModel.tests.length}}); Failing({{unitTestModel.failing.length}}) Nounittestsadded. ExpectedMatches(hoveroverhighlightsfordetails) ActualMatches Edit Passing Enterastringtobetested.Ifallhighlightedmatchesandsubgroups lookcorrect,click"Thisisright". Thisisright Thisiswrong Suggest Cancel Delete Enterastringtobetested.Ifallhighlightedmatchesandsubgroups lookcorrect,click"Thisisright". Thisisright Thisiswrong Suggest Cancel Library (showhide) Help {{dep.title}} Logintoviewdetailsofthisregex Showcheatsheet {{flavors[reModel.flavor].external}}regexquickreference(hide): [abx-z] Onecharacterof:a,b,ortherangex-z [^abx-z] Onecharacterexcept:a,b,ortherangex-z a|b aorb a? Zerooronea's(greedy) a?? Zerooronea's(lazy) a* Zeroormorea's(greedy) a*? Zeroormorea's(lazy) a+ Oneormorea's(greedy) a+? Oneormorea's(lazy) a{4} Exactly4a's a{4,8} Between(inclusive)4and8a's a{9,} 9ormorea's (?>...) Anatomicgroup (?=...) Apositivelookahead (?!...) Anegativelookahead (?<=...) Apositivelookbehind (?...) Acapturinggroupnamedn ^ Beginningofthestring $ Endofthestring \d Adigit(sameas[0-9]) \D Anon-digit(sameas[^0-9]) \w Awordcharacter(sameas[_a-zA-Z0-9]) \W Anon-wordcharacter(sameas[^_a-zA-Z0-9]) \s Awhitespacecharacter \S Anon-whitespacecharacter \b Awordboundary \B Anon-wordboundary \n Anewline \t Atab \cY ThecontrolcharacterwiththehexcodeY \xYY ThecharacterwiththehexcodeYY \uYYYY ThecharacterwiththehexcodeYYYY . Anycharacter \Y TheY'thcapturedgroup (?1) Recurseintonumberedgroup1 (?&x) Recurseintonamedgroupx (?P=n) Thecapturedgroupnamed'n' (?#...) Acomment Full{{flavors[reModel.flavor].external}}regexcheatsheet × SharingExpression Sharethislinktogetbacktoexactlythispage: × EmbedExpression PastethiscodeintoaStackOverflowanswertoembedanimagewithalink tothisexactpage: Preview: DebuggexDemo × GenerateCodeSnippet Thefreetierdoesn'tsupportcodesnippetsusingexpressionsfrom thelibrary.Upgrademyaccount. Copyandpastethissnippetdirectlyintoyourcode: {{genModel.val}}
延伸文章資訊
- 1NET Regex Tester
Online .NET regular expression tester with real-time highlighting and detailed results output.
- 2RegExr: Learn, Build, & Test RegEx
- 310 RegEx Tester for JavaScript, Python, PHP, Golang, Ruby, etc.
This free regular expression tester lets you test your regular expressions against any entry of y...
- 4Debuggex: Online visual regex tester. JavaScript, Python, and ...
Test your regex by visualizing it with a live editor. JavaScript, Python, and PCRE.
- 5Regex Tester and Debugger Online - Javascript, PCRE, PHP
Regular Expression Tester with highlighting for Javascript and PCRE. Quickly test and debug your ...