Strip URL's of parameters in Tableau

Version 1

    Description:  I often need to parse Google Analytics data or any other data that contains a list of URL's.  While doing this, I need to remove the parameters that appear at the end of a content url so pages can be grouped together properly for analysis.



    Example of raw data: 






    Screenshot of desired end:


    The way to do this is to utilize a Regex command that will strip off the ? and all remaining content on the url:





    Tableau Version: 2019.1


    Original AuthorPatrick Van Der Hyde