Below is some code that can be used to help provide some insight into how to test a GA filter real time with the chrome developer console. This was the example code provided by Stephen Hamel in response to a question I posted in the Google Analytics Google+ Community. The goal of this code was to extract the pageID and pass it as the pagename alongside the page title.
var url = document.URL; var B = ["",document.title]; var A=url.match(/(.+)pageid=([^]+)(.*)/); console.info(A[1]+"pagename="+B[1]+A[3]);