Regular Expressions 101

Save & Share

  • Current Version: 2
  • Update Regex
    ctrl+⇧+s
  • Save new Regex
    ctrl+s
  • Add to Community Library

Flavor

  • PCRE2 (PHP)
  • ECMAScript (JavaScript)
  • Python
  • Golang
  • Java
  • .NET 7.0 (C#)
  • Rust
  • PCRE (Legacy)
  • Regex Flavor Guide

Function

  • Match
  • Substitution
  • List
  • Unit Tests
Sponsors
There are currently no sponsors. Become a sponsor today!
An explanation of your regex will be automatically generated as you type.
Detailed match information will be displayed here automatically.
  • All Tokens
  • Common Tokens
  • General Tokens
  • Anchors
  • Meta Sequences
  • Quantifiers
  • Group Constructs
  • Character Classes
  • Flags/Modifiers
  • Substitution
  • A single character of: a, b or c
    [abc]
  • A character except: a, b or c
    [^abc]
  • A character in the range: a-z
    [a-z]
  • A character not in the range: a-z
    [^a-z]
  • A character in the range: a-z or A-Z
    [a-zA-Z]
  • Any single character
    .
  • Alternate - match either a or b
    a|b
  • Any whitespace character
    \s
  • Any non-whitespace character
    \S
  • Any digit
    \d
  • Any non-digit
    \D
  • Any word character
    \w
  • Any non-word character
    \W
  • Non-capturing group
    (?:...)
  • Capturing group
    (...)
  • Zero or one of a
    a?
  • Zero or more of a
    a*
  • One or more of a
    a+
  • Exactly 3 of a
    a{3}
  • 3 or more of a
    a{3,}
  • Between 3 and 6 of a
    a{3,6}
  • Start of string
    ^
  • End of string
    $
  • A word boundary
    \b
  • Non-word boundary
    \B

Regular Expression
Processing...

Test String

Code Generator

Generated Code

package main import ( "regexp" "fmt" ) func main() { var re = regexp.MustCompile(`(?m)(?x-i) # FREE-SPACE MODE, case-sensitive (?(DEFINE) (?<ws>[\r\n\t\x20]*) (?<str>"(?:\\[rntbf"\/] | [[:xdigit:]]{4} | [^\\"[:cntrl:]])*") (?<bool>true|false) (?<nil>nil) (?<num>-?\d+(?:\.\d+)?) (?<elem>(?:(?&str)|(?&bool)|(?&nil)|(?&num))(?&ws)) (?<comma>,(?&ws)) ) # JSON Array \[ (?&ws) (?: (?: (?&elem) | (?R)(?&ws) ) (?(?=(?&comma)(?:(?&elem)|[\[\{]))(?&comma)) )* \] | # Or # JSON Object \{ (?&ws) (?: (?&str) (?&ws) : (?&ws) (?: (?&elem) | (?R)(?&ws) ) (?(?=(?&comma)["\[\{])(?&comma)) )* \}`) var str = `{ "InstrumentationLogDateTime": "2018-06-28T13:49:33.7895781-04:00", "property1": "00000000-1111-2222-3333-444444444444", "property2": "00000000-1111-2222-3333-444444444444", "property3": "my application", "property4": "00000000-1111-2222-3333-444444444444", "property5": "V0300", "property6": "999918", "property7": "system", "property8": "Info", "property9": "123456", "property10": "xx", "property11": "xx", "property12": "page name", "property13": "class name", "property14": "method name", "property15": "123456", "property16": "123456", "property17": 42, "property18": "xx", "property19": "xx", "property20": "123456", "property21": "trans name", "property22": "42", "property23": "2018-06-28T13:49:28", "property24": "Object reference not set to an instance of an object.", "property25": "<?xml version=\"1.0\" encoding=\"utf-16\"?><Error ServerName=\"xxxxxx\" DateTime=\"6/28/2018 1:49:33 PM\"><Message Description=\"Object reference not set to an instance of an object.\" Number=\"\" /><Methods><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"classname.xPSLayoutWidget\" Name=\"ProcessInstruction_DisplayFieldLabel\" LineNumber=\"42\"><Details><Detail Name=\"DisplayFieldLabel\" Description=\"Object reference not set to an instance of an object.\" /><Detail Name=\"Inner XML\" Description=\"\" /><Detail Name=\"fieldName\" Description=\"\" /><Detail Name=\"labelType\" Description=\"\" /><Detail Name=\"suppressColon\" Description=\"\" /><Detail Name=\"lengthAttr\" Description=\"\" /><Detail Name=\"mainLabel\" Description=\"Is Unknown\" /><Detail Name=\"subLabel\" Description=\"Is Unknown\" /></Details></Method><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"classname.Widgets.xPSLayoutWidget\" Name=\"ProcessElement\" LineNumber=\"0\"><Details><Detail Name=\"ProcessElement\" Description=\"Object reference not set to an instance of an object.\" /><Detail Name=\"Inner XML\" Description=\"\" /><Detail Name=\"instructionName\" Description=\"xxxLayout:DisplayFieldLabel\" /></Details></Method><Method Dll=\"xxx.UI, Version=4.4.0.0, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"classname.otherstuff\" Name=\"ParseLayout\" LineNumber=\"0\" /><Method Dll=\"xxx.UI, Version=4.4.0.0, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"classname.LayoutParsers.xxxCoreLayoutParser\" Name=\"ParseLayout\" LineNumber=\"0\" /><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"classname.UI.Widgets.xPSLayoutWidget\" Name=\"ProcessInstruction_FieldEnumerator\" LineNumber=\"0\" /><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"classname.UI.Widgets.xPSLayoutWidget\" Name=\"ProcessElement\" LineNumber=\"0\"><Details><Detail Name=\"ProcessElement\" Description=\"Object reference not set to an instance of an object.\" /><Detail Name=\"Inner XML\" Description=\"&lt;xxxLayout:Parameter Name=&quot;ShowAdjFields&quot; Value=&quot;Y&quot; xmlns:xxxLayout=&quot;urn:myuri.com:xxxLayout&quot; /&gt;&lt;xxxLayout:Parameter Name=&quot;DisplayLevel&quot; Value=&quot;otherstuff&quot; xmlns:xxxLayout=&quot;urn:myuri.com:xxxLayout&quot; /&gt;&lt;xxxLayout:Content xmlns:xxxLayout=&quot;urn:otherstuff.com:xxxLayout&quot;&gt;&lt;li&gt;&lt;xxxLayout:DisplayFieldLabel LabelType=&quot;xxx&quot; /&gt;&lt;xxxLayout:DisplayControl /&gt;&lt;/li&gt;&lt;/xxxLayout:Content&gt;\" /><Detail Name=\"instructionName\" Description=\"xxxLayout:FieldEnumerator\" /></Details></Method><Method Dll=\"xxx.UI, Version=4.4.0.0, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.xxx.LayoutParsers.xxxCoreLayoutParser\" Name=\"ParseLayout\" LineNumber=\"0\" /><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.xPSLayoutWidget\" Name=\"ProcessInstruction_GroupIterator\" LineNumber=\"0\"><Details><Detail Name=\"GroupIterator\" Description=\"Object reference not set to an instance of an object.\" /><Detail Name=\"Inner XML\" Description=\"&lt;h2&gt;&lt;xxxLayout:ShouldDisplayByRule Filter_RuleSetKey=&quot;Pxxxrv.anotherbiglongvalue&quot; xmlns:xxxLayout=&quot;urn:otherstuff.com:xxxLayout&quot;&gt;&lt;xxxLayout:True&gt;&lt;xxxLayout:DisplayControl Name=&quot;rs_ind&quot; FieldName=&quot;rs_ind&quot; /&gt; &#xD;&#xA; &lt;/xxxLayout:True&gt;&lt;xxxLayout:False&gt;&lt;xxxLayout:DisplayFieldLabel FieldName=&quot;rs_ind&quot; Class=&quot;internal&quot; /&gt;&lt;/xxxLayout:False&gt;&lt;/xxxLayout:ShouldDisplayByRule&gt;&lt;/h2&gt;&lt;xxxLayout:FieldEnumerator FieldEnumerator_ObjectConfigKey=&quot;anotherbiglongvalue&quot; xmlns:xxxLayout=&quot;urn:otherstuff.com:xxxLayout&quot;&gt;&lt;xxxLayout:Parameter Name=&quot;ShowAdjFields&quot; Value=&quot;Y&quot; /&gt;&lt;xxxLayout:Parameter Name=&quot;DisplayLevel&quot; Value=&quot;morestuffLevelCoverage_PremiumOnFirstLiabVehicle&quot; /&gt;&lt;xxxLayout:Parameter Name=&quot;IgnoreCoverages&quot; Value=&quot;rs_pe_cnvrgd_fct&quot; /&gt;&lt;xxxLayout:Content&gt;&lt;li&gt;&lt;xxxLayout:DisplayFieldLabel LabelType=&quot;xxx&quot; /&gt;&lt;xxxLayout:DisplayControl /&gt;&lt;/li&gt;&lt;/xxxLayout:Content&gt;&lt;/xxxLayout:FieldEnumerator&gt;&lt;xxxLayout:FieldEnumerator FieldEnumerator_ObjectConfigKey=&quot;thingsthingsthings&quot; xmlns:xxxLayout=&quot;urn:otherstuff.com:xxxLayout&quot;&gt;&lt;xxxLayout:Parameter Name=&quot;ShowAdjFields&quot; Value=&quot;Y&quot; /&gt;&lt;xxxLayout:Parameter Name=&quot;DisplayLevel&quot; Value=&quot;morestuffLevelCoverage_PremiumOnAllLiabVehicles&quot; /&gt;&lt;xxxLayout:Content&gt;&lt;li&gt;&lt;xxxLayout:DisplayFieldLabel LabelType=&quot;xxx&quot; /&gt;&lt;xxxLayout:DisplayControl /&gt;&lt;/li&gt;&lt;/xxxLayout:Content&gt;&lt;/xxxLayout:FieldEnumerator&gt;&lt;xxxLayout:FieldEnumerator FieldEnumerator_ObjectConfigKey=&quot;anotherbiglongvalue&quot; xmlns:xxxLayout=&quot;urn:otherstuff.com:xxxLayout&quot;&gt;&lt;xxxLayout:Parameter Name=&quot;ShowAdjFields&quot; Value=&quot;Y&quot; /&gt;&lt;xxxLayout:Parameter Name=&quot;DisplayLevel&quot; Value=&quot;stuffstuffstuff&quot; /&gt;&lt;xxxLayout:Content&gt;&lt;li&gt;&lt;xxxLayout:DisplayFieldLabel LabelType=&quot;xxx&quot; /&gt;&lt;xxxLayout:DisplayControl /&gt;&lt;/li&gt;&lt;/xxxLayout:Content&gt;&lt;/xxxLayout:FieldEnumerator&gt;\" /></Details></Method><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.xPSLayoutWidget\" Name=\"ProcessElement\" LineNumber=\"0\"><Details><Detail Name=\"ProcessElement\" Description=\"Object reference not set to an instance of an object.\" /><Detail Name=\"Inner XML\" Description=\"&lt;h2&gt;&lt;xxxLayout:ShouldDisplayByRule Filter_RuleSetKey=&quot;Pxxxrv.CanProcessRateStability&quot; xmlns:xxxLayout=&quot;urn:otherstuff.com:xxxLayout&quot;&gt;&lt;xxxLayout:True&gt;&lt;xxxLayout:DisplayControl Name=&quot;rs_ind&quot; FieldName=&quot;rs_ind&quot; /&gt; &#xD;&#xA; &lt;/xxxLayout:True&gt;&lt;xxxLayout:False&gt;&lt;xxxLayout:DisplayFieldLabel FieldName=&quot;rs_ind&quot; Class=&quot;internal&quot; /&gt;&lt;/xxxLayout:False&gt;&lt;/xxxLayout:ShouldDisplayByRule&gt;&lt;/h2&gt;&lt;xxxLayout:FieldEnumerator FieldEnumerator_ObjectConfigKey=&quot;keykeykey&quot; xmlns:xxxLayout=&quot;urn:otherstuff.com:xxxLayout&quot;&gt;&lt;xxxLayout:Parameter Name=&quot;ShowAdjFields&quot; Value=&quot;Y&quot; /&gt;&lt;xxxLayout:Parameter Name=&quot;DisplayLevel&quot; Value=&quot;anotherbiglongvalue&quot; /&gt;&lt;xxxLayout:Parameter Name=&quot;IgnoreCoverages&quot; Value=&quot;rs_pe_cnvrgd_fct&quot; /&gt;&lt;xxxLayout:Content&gt;&lt;li&gt;&lt;xxxLayout:DisplayFieldLabel LabelType=&quot;xxx&quot; /&gt;&lt;xxxLayout:DisplayControl /&gt;&lt;/li&gt;&lt;/xxxLayout:Content&gt;&lt;/xxxLayout:FieldEnumerator&gt;&lt;xxxLayout:FieldEnumerator FieldEnumerator_ObjectConfigKey=&quot;anotherbiglongvalue&quot; xmlns:xxxLayout=&quot;urn:otherstuff.com:xxxLayout&quot;&gt;&lt;xxxLayout:Parameter Name=&quot;ShowAdjFields&quot; Value=&quot;Y&quot; /&gt;&lt;xxxLayout:Parameter Name=&quot;DisplayLevel&quot; Value=&quot;morestuffLevelCoverage_anotherbiglongvalue&quot; /&gt;&lt;xxxLayout:Content&gt;&lt;li&gt;&lt;xxxLayout:DisplayFieldLabel LabelType=&quot;xxx&quot; /&gt;&lt;xxxLayout:DisplayControl /&gt;&lt;/li&gt;&lt;/xxxLayout:Content&gt;&lt;/xxxLayout:FieldEnumerator&gt;&lt;xxxLayout:FieldEnumerator FieldEnumerator_ObjectConfigKey=&quot;anotherbiglongvalue&quot; xmlns:xxxLayout=&quot;urn:otherstuff.com:xxxLayout&quot;&gt;&lt;xxxLayout:Parameter Name=&quot;ShowAdjFields&quot; Value=&quot;Y&quot; /&gt;&lt;xxxLayout:Parameter Name=&quot;DisplayLevel&quot; Value=&quot;VehicleLevelCoverage&quot; /&gt;&lt;xxxLayout:Content&gt;&lt;li&gt;&lt;xxxLayout:DisplayFieldLabel LabelType=&quot;xxx&quot; /&gt;&lt;xxxLayout:DisplayControl /&gt;&lt;/li&gt;&lt;/xxxLayout:Content&gt;&lt;/xxxLayout:FieldEnumerator&gt;\" /><Detail Name=\"instructionName\" Description=\"xxxLayout:GroupIterator\" /></Details></Method><Method Dll=\"xxx.UI, Version=4.4.0.0, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.xxx.LayoutParsers.xxxCoreLayoutParser\" Name=\"ParseLayout\" LineNumber=\"0\" /><Method Dll=\"xxx.UI, Version=4.4.0.0, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.xxx.LayoutParsers.xxxCoreLayoutParser\" Name=\"ParseLayout\" LineNumber=\"0\" /><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.xPSLayoutWidget\" Name=\"ProcessInstruction_Layout\" LineNumber=\"0\" /><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.xPSLayoutWidget\" Name=\"ProcessElement\" LineNumber=\"0\"><Details><Detail Name=\"ProcessElement\" Description=\"Object reference not set to an instance of an object.\" /><Detail Name=\"Inner XML\" Description=\"&lt;ul class=&quot;fieldList&quot;&gt;&lt;xxxLayout:GroupIterator Index=&quot;VehicleIndex&quot; xmlns:xxxLayout=&quot;urn:otherstuff.com:xxxLayout&quot;&gt;&lt;h2&gt;&lt;xxxLayout:ShouldDisplayByRule Filter_RuleSetKey=&quot;Pxxxrv.candothings&quot;&gt;&lt;xxxLayout:True&gt;&lt;xxxLayout:DisplayControl Name=&quot;rs_ind&quot; FieldName=&quot;rs_ind&quot; /&gt; &#xD;&#xA; &lt;/xxxLayout:True&gt;&lt;xxxLayout:False&gt;&lt;xxxLayout:DisplayFieldLabel FieldName=&quot;rs_ind&quot; Class=&quot;internal&quot; /&gt;&lt;/xxxLayout:False&gt;&lt;/xxxLayout:ShouldDisplayByRule&gt;&lt;/h2&gt;&lt;xxxLayout:FieldEnumerator FieldEnumerator_ObjectConfigKey=&quot;thingsandthings&quot;&gt;&lt;xxxLayout:Parameter Name=&quot;ShowAdjFields&quot; Value=&quot;Y&quot; /&gt;&lt;xxxLayout:Parameter Name=&quot;DisplayLevel&quot; Value=&quot;morestuffLevelCoverage_PremiumOnFirstLiabVehicle&quot; /&gt;&lt;xxxLayout:Parameter Name=&quot;aparamparam&quot; Value=&quot;rs_pe_cnvrgd_fct&quot; /&gt;&lt;xxxLayout:Content&gt;&lt;li&gt;&lt;xxxLayout:DisplayFieldLabel LabelType=&quot;xxx&quot; /&gt;&lt;xxxLayout:DisplayControl /&gt;&lt;/li&gt;&lt;/xxxLayout:Content&gt;&lt;/xxxLayout:FieldEnumerator&gt;&lt;xxxLayout:FieldEnumerator FieldEnumerator_ObjectConfigKey=&quot;anotherbiglongvalue&quot;&gt;&lt;xxxLayout:Parameter Name=&quot;ShowAdjFields&quot; Value=&quot;Y&quot; /&gt;&lt;xxxLayout:Parameter Name=&quot;DisplayLevel&quot; Value=&quot;areallylongvalueofathing&quot; /&gt;&lt;xxxLayout:Content&gt;&lt;li&gt;&lt;xxxLayout:DisplayFieldLabel LabelType=&quot;xxx&quot; /&gt;&lt;xxxLayout:DisplayControl /&gt;&lt;/li&gt;&lt;/xxxLayout:Content&gt;&lt;/xxxLayout:FieldEnumerator&gt;&lt;xxxLayout:FieldEnumerator FieldEnumerator_ObjectConfigKey=&quot;anotherbiglongvalue&quot;&gt;&lt;xxxLayout:Parameter Name=&quot;ShowAdjFields&quot; Value=&quot;Y&quot; /&gt;&lt;xxxLayout:Parameter Name=&quot;DisplayLevel&quot; Value=&quot;VehicleLevelCoverage&quot; /&gt;&lt;xxxLayout:Content&gt;&lt;li&gt;&lt;xxxLayout:DisplayFieldLabel LabelType=&quot;xxx&quot; /&gt;&lt;xxxLayout:DisplayControl /&gt;&lt;/li&gt;&lt;/xxxLayout:Content&gt;&lt;/xxxLayout:FieldEnumerator&gt;&lt;/xxxLayout:GroupIterator&gt;&lt;/ul&gt;\" /><Detail Name=\"instructionName\" Description=\"xxxLayout:Layout\" /></Details></Method><Method Dll=\"xxx.UI, Version=4.4.0.0, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.xxx.LayoutParsers.xxxCoreLayoutParser\" Name=\"ParseLayout\" LineNumber=\"0\" /><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.xPSLayoutWidget\" Name=\"Build\" LineNumber=\"0\" /><Method Dll=\"xxx.UI, Version=4.4.0.0, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.xxx.WidgetManagers.xxxCoreWidgetManager\" Name=\"Build\" LineNumber=\"0\" /><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.UICoreLayoutManager\" Name=\"DisplayWidget\" LineNumber=\"0\"><Details><Detail Name=\"Section\tName\" Description=\"more descriptions of things\" /></Details></Method><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.UICoreLayoutManager\" Name=\"ProcessDisplayItemInstruction\" LineNumber=\"0\"><Details><Detail Name=\"Node Name\" Description=\"xxxLayout:DisplayItem\" /><Detail Name=\"Level\" Description=\"0\" /></Details></Method><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.UICoreLayoutManager\" Name=\"ProcessInstruction\" LineNumber=\"0\"><Details><Detail Name=\"Node Name\" Description=\"xxxLayout:DisplayItem\" /><Detail Name=\"Level\" Description=\"8\" /></Details></Method><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.UICoreLayoutManager\" Name=\"ProcessNode\" LineNumber=\"0\"><Details><Detail Name=\"Node Name\" Description=\"xxxLayout:DisplayItem\" /></Details></Method><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.UICoreLayoutManager\" Name=\"ProcessForEachItemInstruction\" LineNumber=\"0\"><Details><Detail Name=\"Node Name\" Description=\"xxxLayout:ForEachLayoutItem\" /><Detail Name=\"Level\" Description=\"7\" /><Detail Name=\"Layout\tItem Name\" Description=\"PageSections\" /></Details></Method><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.UICoreLayoutManager\" Name=\"ProcessInstruction\" LineNumber=\"0\"><Details><Detail Name=\"Node Name\" Description=\"xxxLayout:ForEachLayoutItem\" /><Detail Name=\"Level\" Description=\"7\" /></Details></Method><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.UICoreLayoutManager\" Name=\"ProcessNode\" LineNumber=\"0\"><Details><Detail Name=\"Node Name\" Description=\"xxxLayout:ForEachLayoutItem\" /></Details></Method><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.UICoreLayoutManager\" Name=\"ProcessItemRepeaterInstruction\" LineNumber=\"0\"><Details><Detail Name=\"Node Name\" Description=\"xxxLayout:ItemRepeater\" /><Detail Name=\"Level\" Description=\"6\" /><Detail Name=\"Layout\tItem Name\" Description=\"PageSections\" /></Details></Method><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.UICoreLayoutManager\" Name=\"ProcessInstruction\" LineNumber=\"0\"><Details><Detail Name=\"Node Name\" Description=\"xxxLayout:ItemRepeater\" /><Detail Name=\"Level\" Description=\"6\" /></Details></Method><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.UICoreLayoutManager\" Name=\"ProcessNode\" LineNumber=\"0\"><Details><Detail Name=\"Node Name\" Description=\"xxxLayout:ItemRepeater\" /></Details></Method><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.UICoreLayoutManager\" Name=\"ProcessNode\" LineNumber=\"0\"><Details><Detail Name=\"Node Name\" Description=\"form\" /></Details></Method><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.UICoreLayoutManager\" Name=\"ProcessNode\" LineNumber=\"0\"><Details><Detail Name=\"Node Name\" Description=\"div\" /></Details></Method><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.UICoreLayoutManager\" Name=\"ProcessNode\" LineNumber=\"0\"><Details><Detail Name=\"Node Name\" Description=\"div\" /></Details></Method><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.UICoreLayoutManager\" Name=\"ProcessNode\" LineNumber=\"0\"><Details><Detail Name=\"Node Name\" Description=\"body\" /></Details></Method><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.UICoreLayoutManager\" Name=\"ProcessNode\" LineNumber=\"0\"><Details><Detail Name=\"Node Name\" Description=\"html\" /></Details></Method><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.UICoreLayoutManager\" Name=\"ProcessNode\" LineNumber=\"0\"><Details><Detail Name=\"Node Name\" Description=\"xxxLayout:Layout\" /></Details></Method><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.UICoreLayoutManager\" Name=\"Build\" LineNumber=\"0\"><Details><Detail Name=\"Level\" Description=\"0\" /></Details></Method><Method Dll=\"PPUI.Widgets, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Widgets.UICoreLayoutManager\" Name=\"Build\" LineNumber=\"0\" /><Method Dll=\"xxx.UI, Version=4.4.0.0, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.xxx.Engine.xxxCoreEngine\" Name=\"DisplayPage\" LineNumber=\"0\"><Details><Detail Name=\"Page Name\" Description=\"more and more descriptions\" /></Details></Method><Method Dll=\"App_Web_ng11liaj, Version=0.0.0.0, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"ASP.scripts_displaypage_aspx\" Name=\"ExceptionRedirection\" LineNumber=\"0\"><Details><Detail Name=\"Url\" Description=\"http://intr-q-ppsu-004/xPS.Web/scripts/DisplayPage.aspx?Page=somepageinformation&amp;Location=somewhere&amp;UserId={blah blah blah}&amp;OfferingId=anotherthing&amp;transNum=&amp;Act=funthings&amp;AccessType=CallCtr&amp;Brand=42&amp;ContentGroup=V&amp;Tab=NoTab\" /></Details></Method><Method Dll=\"PPUI.Utils, Version=0.18.1.1652, Culture=neutral, PublicKeyToken=__SECURITYMASK__\" Class=\"otherstuff.morestuff.UI.Utils.Log.ErrorLog\" Name=\"Log\" LineNumber=\"0\"><Details><Detail Name=\"ExceptionName\" Description=\"otherstuff.xxx.Exceptions.CustomException\" /><Detail Name=\"NestedInnerExceptionNames\" Description=\"System.NullReferenceException\" /><Detail Name=\"ExceptionLevelCount\" Description=\"1\" /><Detail Name=\"Url:\" Description=\"http://yepthisisauriofathing/scripts/DisplayPage.aspx?Page=thisisapagename&amp;Location=aplace&amp;UserId={duhduhduh}&amp;OfferingId=yeahyeah&amp;transNum=&amp;Act=anotherbiglongvalue&amp;AccessType=CallCtr&amp;Brand=09&amp;ContentGroup=V&amp;Tab=NoTab\" /></Details></Method></Methods><InnerExceptionDetails><InnerExceptionDetail ExType=\"System.NullReferenceException\" ExSource=\"PPUI.Widgets\" ExTargetSite=\"ProcessInstruction_DisplayFieldLabel\" ExMessage=\"Object reference not set to an instance of an object.\"><ExCallStack CDATA=\" at otherstuff.morestuff.UI.Widgets.xPSLayoutWidget.ProcessInstruction_DisplayFieldLabel(PageControllerBase pageController, XmlNode node)\" /></InnerExceptionDetail></InnerExceptionDetails></Error>", "CustomFields": { "property26": "", "property27": "xx", "property28": "anotherbiglongvalue", "property29": "xx", "property31": "", "property32": "123456", "property33": "anotherbiglongvalue.anotherbiglongvalue.anotherbiglongvalue", "property34": "anotherbiglongvalue,anotherbiglongvalue,anotherbiglongvalue", "property35": "anotherbiglongvalueanotherbiglongvalueanotherbiglongvalue", "property36": "this is a big ol thing", "property37": "this is a big ol thing", "property38": "this is a big ol thing", "property39": "2018-06-28T13:49:33.0000000-04:00", "property40": "2018-06-28T13:32:24.0000000-04:00" } }` for i, match := range re.FindAllString(str, -1) { fmt.Println(match, "found at index", i) } }

Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for Golang, please visit: https://golang.org/pkg/regexp/