Analytics
1.6K members online now
Understand information in your reports and troubleshoot reporting issues such as self-referrals, (not set) data, and inaccurate information
 
Guide Me
star_border
Reply

Regex Not working

Follower ✭ ✭ ☆
# 1
Follower ✭ ✭ ☆

I am trying to filter a Multi Channel report using regex and it keeps giving me an error that i'm using invalid regex. 

 

The regex works in php and a regex tester. 

 

'/kw1\skw2(?)((?!kw3).)*$/i'

 

I'm trying to get it to list all rows that have kw1 kw2 together in that order but not if it is followed by kw2

 

It returns the row if it finds "kw1 kw2 > kw1 kw2 kw3"

It returns the row if it finds "kw1 kw2"

It does not return the line if it finds "kw1 kw2 kw3 > kw2 kw3 > kw1 kw3"

1 Expert replyverified_user

Regex Not working

Top Contributor
# 2
Top Contributor

I do not think Google can handle the ! character

But I cannot confirm that. I just have vague memory that ! was not supported widely (but that was long ago and I just learned to cope without it Smiley Happy )


--
To make bad day worse, spend it wishing for the impossible