Regex Tester and Debugger Online - Javascript, PCRE, PHP

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

Regular Expression Tester with highlighting for Javascript and PCRE. Quickly test and debug your regex. Togglenavigation RegExTesting FromDan'sTools WebDev HTML/JS/CSSPlaygroundHTMLColorCodesCSSFontsOnlineDiffTool.htaccessGeneratorRegExTestingRGB&HEXColorExplorerRGBtoHEXColorConverterTimeStampConverterWebsiteSpeedTestFavicon.ico&AppIconGeneratorOnlineImageEditorCSSSpriteGeneratorKeywordTool Conversion Data CSVToHTMLConverterCSVToJSONConverterCSVToTSVConverterCSVToXMLConverterJSONToCSVConverterJSONToHTMLConverterJSONToTSVConverterJSONToXMLConverterXMLToCSVConverterXMLToHTMLConverterXMLToJSONConverterXMLToTSVConverterConvertFiles Numbers BinaryConverterBinaryToDecimalConverterBinaryToHexConverterBinaryToOctalConverterUnitConverterDecimalToBinaryConverterDecimalToHexConverterDecimalToOctalConverterHexToBinaryConverterHexToDecimalConverterHexToOctalConverterDataSizeConverterOctalToBinaryConverterOctalToDecimalConverterOctalToHexConverter Strings BinaryToStringConverterHexToStringConverterHTMLEntitiesEscapeHTMLEntitiesUnescapeStringToBinaryConverterStringToHexConverterStripandRemoveHTMLTagsStripandRemoveXMLTagsWordCounterXMLEntitiesEscapeXMLEntitiesUnescape Encode/Decoders Base64DecodeBase64EncodeMD5HashGeneratorSHA-1HashGeneratorSHA-256HashGeneratorSHA-512HashGeneratorURLEncode/Decode Formatters CSSFormatterGOFormatterHTMLBeautifier&FormatterJavascriptFormatterJavascriptObfuscateJSONFormatter&BeautifierJSONEditorJSONValidatorPerlFormatterPHPFormatterPythonFormatterRubyFormatterSQLFormatterXMLFormatter&BeautifierCSSMinifyJavascriptMinifyJSONMinify Internet EmailValidatorIsItUpOrDownDefaultRouterSettingsUserManualsWhatismyIP JoinLogin RegexTesterDan'sTools PoweredByRegExr Library {{getLabel()}} {{getLabel()}} {{getStaticRating()}} Substitution {{getIcon()}}{{getLabel()}}{{getDetail()}} RegexTesterisatooltolearn,build,&testRegularExpressions(RegEx/RegExp). Resultsupdateinreal-timeasyoutype. Rolloveramatchorexpressionfordetails. Save&shareexpressionswithothers. ExploretheLibraryforhelp&examples. Undo&Redowith{{getCtrlKey()}}-Z/Y. Searchfor&rateCommunitypatterns. Characterclasses . anycharacterexceptnewline \w\d\s word,digit,whitespace \W\D\S notword,digit,whitespace [abc] anyofa,b,orc [^abc] nota,b,orc [a-g] characterbetweena&g Anchors ^abc$ start/endofthestring \b wordboundary Escapedcharacters \.\*\\ escapedspecialcharacters \t\n\r tab,linefeed,carriagereturn \u00A9 unicodeescaped© Groups&Lookaround (abc) capturegroup \1 backreferencetogroup#1 (?:abc) non-capturinggroup (?=abc) positivelookahead (?!abc) negativelookahead Quantifiers&Alternation a*a+a? 0ormore,1ormore,0or1 a{5}a{2,} exactlyfive,twoormore a{1,3} betweenone&three a+?a{2,}? matchasfewaspossible ab|cd matchaborcd RegularExpression JavascriptPCRE flags TestString Substitution SavethisRegex Name: Description: Save TopRegularExpressions MatchstringnotcontainingstringCheckifastringonlycontainsnumbersMatchelementsofaurlMatchanemailaddressValidateanipaddressMatchorValidatephonenumberMatchhtmltagEmptyStringMatchdates(M/D/YY,M/D/YYY,MM/DD/YY,MM/DD/YYYY)Checksthelengthofnumberandnotstartswith0NotAllowingSpecialCharactersMatchavalidhostnameValidatedatetimestringbetweenquotes+nestedquotesMatchbracketsUrlmatchawiderangeofinternationalphonenumberMatchIPv6AddressemailvalidationRegExAllowingNumberOnly CheatSheet Characterclasses . anycharacterexceptnewline \w\d\s word,digit,whitespace \W\D\S notword,digit,whitespace [abc] anyofa,b,orc [^abc] nota,b,orc [a-g] characterbetweena&g Anchors ^abc$ start/endofthestring \b wordboundary Escapedcharacters \.\*\\ escapedspecialcharacters \t\n\r tab,linefeed,carriagereturn \u00A9 unicodeescaped© Groups&Lookaround (abc) capturegroup \1 backreferencetogroup#1 (?:abc) non-capturinggroup (?=abc) positivelookahead (?!abc) negativelookahead Quantifiers&Alternation a*a+a? 0ormore,1ormore,0or1 a{5}a{2,} exactlyfive,twoormore a{1,3} betweenone&three a+?a{2,}? matchasfewaspossible ab|cd matchaborcd  RegexTester RegexTesterisn'toptimizedformobiledevicesyet.Youcanstilltakealook,butitmightbeabitquirky.>Okay!  RegexTester RegexTesterrequiresamodernbrowser.Pleaseupdateyourbrowsertothelatestversionandtryagain. ×Close Login Ifyoudon'talreadyhaveanaccount,RegisterNow Close ×Close Join Jointoaccessdiscussionforumsandpremiumfeaturesofthesite. Close ×Close PleaseShare! Thankyouforusingmytool.Ifyoucouldsharethistoolwithyourfriends,thatwouldbeahugehelp: Tweet Orfollowustolearnaboutourlatesttools: Follow@danstools00 Close



請為這篇文章評分?