Regular expression for URL for Google Analytics - regex

I'm trying to set up a goal on Google Analytics and want to match a regular expression against the following url:
/tasks/[random characters of random length]/complete
An example input url would be:
/tasks/12444ab22aaa7/complete
Any ideas?

^/tasks/.*/complete$
Validate with a search in the Top Content report before using in a filter.

Perhaps this
\/tasks\/[^/]*\/complete

Related

Matching partial URL regex Google analytics

I want show only the URL's that contains "category-".
url/category-cats
url/category-elfs
url/category-dogs
The following can do the job :
^url/category-\w+/?$
But note that based on your regex engine you may need to escape the back slashe!
^url\/category-\w+\/?$

extract href in jmeter with Regular Expression Extractor?

After a Successful Login my page contains a Tab "Offers".Link is provided below I want to know how Regex can extract it.
a href="/Offers/OfferApproval"> Offers<a/>
This is required regex for extracting /Offers/OfferApproval value,
href="(.+)"> Offers<a/>
Use Regular expression post processor.

Regular expression to filter URLs?

I need to filter some specific URLs using Regex in Google analytics.
It should only filter the below format URLs from the all URLs recorded:
/job/41-content-verification?action=register
/job/62-data-verification?action=register
/job/33-data-entry?action=register
Like starts with '/job/' then 'some string/data' and ends with '?action=register'
I need the regex to be put in Google analytics filter. Please help.
Try this:
^/job/.+?\?action=register$
^\/job\/.+?action=register$
Try this.See demo.
http://regex101.com/r/sU3fA2/24
^\/job\/[a-z0-9-]+\?action=register$

Google analytics query explorer pagepath filter

I am using google analytics query explorer http://ga-dev-tools.appspot.com/explorer/ to fetch all pagepath with visits greater than 10. I don't want pages whose url begins with /Registration. I tried certain regular expressions as ga:pagPath == ~^/Registration/* but was unable to get the desired result. Any help would be much appreciated.
You are using == ~ which should be =~
ga:pagPath =~ ^/Registration/*
Not sure why its /*(people are using this all around!) In regex it should be /.*
According to this doc I found the syntax for "Does not match regular expression" is !~. So your expression would be:
ga:pagPath!~^/Registration/.*

Jmeter RegEx Extractor

I am new to Jmeter's Regular Expression Extractor. For an HTTP Request, I am getting an HTML Response. I want to extract all the URL strings.
This is one example; the number after tools in the id part changes.
li><a id="link_sub_sub_cat_tools14874187"
href="/EN/shop/tools/tools.cat"
class="cat-/tools/tools"><span>
li><a id="link_sub_sub_cat_tools14874787"
href="/EN/shop/tools/tools.cat"
class="cat-/tools/tools"><span>
li><a id="link_sub_sub_cat_tools14874287"
href="/EN/shop/tools/tools.cat"
class="cat-/tools/tools"><span>
How can this be done?
I have created jMeter tutorials for the very subject.
http://my.kpoint.com/kapsule/gcc-e1bad3ad-61cf-4620-9733-e44a74af8a3e/t/jmeter-tutorial-regex-extractor-basics
http://my.kpoint.com/kapsule/gcc-1dadaeee-1572-4c83-81fc-8d401cade743/t/jmeter-tutorial-multivalue-regex
http://my.kpoint.com/kapsule/gcc-744b552e-c91e-4db2-9d39-37c6e66f22ac/t/jmeter-tutorial-json-array-extraction
To extract url strings use regular expression- href="(.+?)"
To extract number after after tools in the id part use regular expression- id="link_sub_sub_cat_(.+?)"