How to using regex to replace or matching text in Link

Hello all,

I need help about using regex maybe ? cause i want to making a condition if linkURL have contains “?page=all” it will continue to another activity… but if it only contains “?page” it must to be replace the all the text in ending to be a “?page=all”. And then if it only “www.google.com” it must to be “Google

For Example i want to make “Google” to be a “Google
this the work flow

Hi @Ricky_Fenardo u can replace activity to replace the value with ?page=all

Regex to be used

image

how if i must to use string variable named “linkURL” ? because the link is not only from “www.google.com” , it will be anything link… so from user input i take it to variable “linkURL”