Page 1
Page 2
Page 3
Page 4
Page 5
Page 6
Page 7
Page 8
Page 9
Page 10
Page 11
Page 12
Page 13
Page 14
Page 15
Page 16
Page 17
Page 18
Page 19
Page 20
Page 21
Page 22
Page 23
WhenyouuseacaretinyourRegularExpressionyouforcetheExpressiontomatchonlystringsthatstartexactlythesamewayyourRegExdoes.IseecaretsmisusedallthetimeonvariousGoogleAnalyticshelpgroups.Itgoessomethinglikethisx1cIwanttoincludeonlysubfolder2inmypro1le.MyURLslooklikehttpwww.mysite.comfolder1subfolder2index.html.Icreatedtheinclude1lterandtheRegularExpressionwhichlookslikethissubfolder2index.html.Whyisnx19titworkingx1dThereasonitdoesnx19tworkisthatGoogleAnalyticsstartsreadingyourURLrightafterthe.comor.eduor.netasitwere.TheGAseestheaboveasfolder1subfolder2index.html.SowhenthepersonwhowrotethequestionabovestartshisRegExwithsubfolder2heshootshimselfinthefoot.IntheeyesofGAfolder1comesbeforesubfolder2yetthecaretmandatesthatsubfolder2mustbeatthebeginningofthetargetstring.Anditx19snotSoitwillnevermatch.ThEcareTanchorsaDvaNCedtIpWhenyouputacaretinsidesquarebracketsattheverybeginningitmeansmatchonlycharactersthatarenotrightafterthecaret.So0-9meansifthetargetstringcontainsadigititisnotamatch.19