3 Replies Latest reply on Jul 13, 2018 6:29 AM by Gerardo Varela

    Calculated Dimension - Get String to right of last "/" in URL

    Steve Wolfe

      Hello All,

       

      I am currently on a project using Google Analytics data, and I'm needing to extract the string to the right of the last "/" in the URL. An example URL would be:

       

      http://www.testurl.com/thisisapage/thisisanotherpage/WHATINEEDTOEXTRACT

       

      Apparently, the regular expression that I use normally doesn't work.

      ([column],"^/.*/(.*)$","$1","")

       

      Any help/advice you all could provide would be greatly appreciated.

       

      Thanks!