AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Data Studio
1.7K members online now
1.7K members online now
Ask questions about Data Studio
Guide Me
star_border
Reply

Replacing part of url with REGEXP_REPLACE, could use some advice

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi there,

 

Im trying to use the replace option in the calculated fields to replace the start url of a website.

 

REGEXP_REPLACE(Page, '.*www.*.nl', 'Path')

 

It accepts the formula, but i dont see any difference in my rapport.

 

Any advice is welcome.

 

Kind regards

 

1 Expert replyverified_user

Replacing part of url with REGEXP_REPLACE, could use some advice

Top Contributor
# 2
Top Contributor

Hi,

 

Please try '((.*)www.(.*).nl)' as the regex.

 

Let me know if it works.


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital