Loading ...
Sorry, an error occurred while loading the content.

23930Re: [webanalytics] Google Analytics Regular Expression- URL Filter

Expand Messages
  • S
    Oct 3, 2009
      Try this..

      $x = "www.example. com/center/ SID-0ABC34- 38B7/home/ resources. asp";
      $x =~ s/SID-(.*?)\///gi;
      print "\nx is $x";

      x is www.example. com/center/ home/ resources. asp


      --- On Fri, 10/2/09, r_praski <rpraskievicz@...> wrote:

      From: r_praski <rpraskievicz@...>
      Subject: [webanalytics] Google Analytics Regular Expression- URL Filter
      To: webanalytics@yahoogroups.com
      Date: Friday, October 2, 2009, 1:40 AM


      I am trying to filter out session IDs in a URL using a regular expression. Here is an example URL:

      www.example. com/center/ SID-0ABC34- 38B7/home/ resources. asp

      In my Google Analytics page report I would like to remove SID-0ABC34-38B7 and only see /center/home/ resources. asp as the page name.

      Can anyone help me write a regular expression that achieves this?



      [Non-text portions of this message have been removed]
    • Show all 6 messages in this topic