regex101: build, test, and debug regex
文章推薦指數: 80 %
Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET. RegularExpressions101Pleasewaitwhiletheappisloading...RegexEditorRegexEditorRegexLibraryRegexLibraryAccountAccountRegexQuizRegexQuizSettingsSettingsLiveHelpLiveHelpSave&ShareSaveRegexctrl+sSaveRegularExpressionLinktoregularexpressionCopytoclipboardYourregexhasbeenpermanentlysavedandmaybeaccessedwiththislinkbyanybodyyougiveitto.CloseSubmitWorkspacetoRegexLibraryTitle*0/150Description*WritePreviewAddheaderAddboldtextAdditalictextInsertquoteInsertcodesnippetInsertlinkAddbulletedlistAddnumberedlistHeadersH1H2H30/5000StylingwithMarkdownissupportedAuthor0/150SubmitCancelDeleteRegexAreyousureyouwanttodeletethisregex?Thisactionisnon-reversibleandwilldeleteallversionsofthisregex.Thedatacanneverberecoveredagain!Yes,deleteCloseFlavorNeedhelpselectingflavor?Needhelpselectingflavor?PCRE2(PHP>=7.3)PCRE(PHP<7.3)ECMAScript(JavaScript)PythonGolangJava8.NET(C#)FlavorHelpLoadingcontent...CloseFunctionMatchSubstitutionListUnitTestsToolsCodeGeneratorRegexDebuggerSponsorsAllyourenvironmentvariables,inoneplaceAdvertisementsandyourprivacyTheadvertisementsareprovidedbyCarbon,butimplementedbyregex101.Nocookieswillbeusedfortrackingandnothirdpartyscriptswillbeloaded.TheinformationisfetchedusingaJSONPrequest,whichcontainstheadtextandalinktotheadimage.TheJSONfileandimagesarefetchedfrombuysellads.comorbuysellads.net.Ifyouhaveanyquestionsorconcerns,pleasefeelfreetosendanemail.CloseExplanationAnexplanationofyourregexwillbeautomaticallygeneratedasyoutype.MatchInformationDetailedmatchinformationwillbedisplayedhereautomatically.QuickReferenceRegularExpressionRegexVersionsNoMatch/Delimiters/~@;%`#Changedelimiter/gmRegexFlagsglobalDon'treturnafterfirstmatchmultiline^and$matchstart/endoflineinsensitiveCaseinsensitivematchextendedIgnorewhitespacesinglelineDotmatchesnewlineunicodeMatchwithfullunicodeUngreedyMakequantifierslazyAnchoredAnchortostartofpattern,orattheendofthemostrecentmatchJchangedAllowduplicatesubpatternnamesDollarendonly$matchesonlyendofpatternSetRegexOptionsCopytoclipboardTestStringKeyboardShortcutsShortcutDescriptionctrl+1Switchtoregexmatchingctrl+2Switchtoregexsubstitutionctrl+3Switchtoregexlistsubstitutionctrl+4Switchtounittestsctrl+bOpenregexdebuggerctrl+gOpencodegeneratorctrl+enterRununittests(whenviewisopen)Close
延伸文章資訊
- 1Regular Expression Analyzer
An online utility that helps analyzing regular expression structure. ... This is a tool to parse ...
- 2Regular Expression Analyzer - Online Software Tool - dCode
- 3regex101: build, test, and debug regex
Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python...
- 4Regular expressions - memoQ Documentation
Regular expressions are a powerful means for finding character sequences in text. In memoQ, they ...
- 5Regex Explanation ^.*$ [duplicate] - Stack Overflow