Rich-text Reply

regex with search query parameters

Caroline 11-30-16
Accepted Solution

regex with search query parameters

I would like to create URL targetting, where anytime q="Versicherungskaufmann", and regardless of other query parameter information, the experiment will activate. 

So for example, this is the RegEx I have right now:

http://www.ausbildung.de/suche/*(q=Versicherungskaufmann)*

 

Samples URL to be included:

https://www.ausbildung.de/suche/?utf8=%E2%9C%93&q=Versicherungskaufmann&ort=&button=

 

There is another keyword, which includes dashes and or words with umlauts:

Kaufmann/-frau für Versicherungen und Finanzen

 

Sample URL being:

https://www.ausbildung.de/suche/?utf8=%E2%9C%93&q=Kaufmann%2F-frau+f%C3%BCr+Versicherungen+und+Finan...

 

First question, can I generally do this using URL Targetting and RegEx, and second question, do Capitals/lowercases, dashes and slashes need to be written in special ways? I'm doing a tutorial online for RegEx, but we are in a bit of a hurry and not sure I can learn by myself in time!

Thank you!!

Certifications, Optimizely
Level 3

Caroline 11-30-16
 

Re: regex with search query parameters

Some more info:

If I put this regex in the URL Targetting:
q=Versicherungskaufmann

then it works on the correct pages BUT, I need to target pages with q=Versicherungskaufmann only in the search results, in other words only pages with "/suche/" in the URL.
How could I combine "ausbildung.de/suche/" with "q=Versicherungskaufmann" ?
Certifications, Optimizely
Level 3
CouchPsycho 11-30-16
 

Re: regex with search query parameters

Did you try

.*/suche/.*q=Versicherungskaufmann

VG, Michael



"the essence of the creative act is to see the familiar as strange." (anonymous)
Caroline 11-30-16
 

Re: regex with search query parameters

Ya know, I just realized this was the solution as you posted the comment. But I appreciate the confirmation.
Certifications, Optimizely
Level 3
Caroline 11-30-16
 

Re: regex with search query parameters

Thank you
Certifications, Optimizely
Level 3