regex101: build, test, and debug regex

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

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



請為這篇文章評分?