Question

How do I find and replace link in html file?

  • 28 October 2021
  • 6 replies
  • 155 views

Userlevel 1

I am attempting to scan a Google shared folder (with many subfolders), find any html files that contain a specific url link (i.e. https://protect-us.mimecast) attached to a word string with the file and remove it?  

Example:

find: testing.co 

remove: testing.co

Appreciate any help.

 

 


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

6 replies

Userlevel 3
Badge +1

@mbernal3 confirming the url is in the file, not the file name?

Userlevel 7
Badge +14

Hi @mbernal3 

Make sure to check the available GDrive Zap app triggers/actions to help determine the feasibility of your use case:

https://zapier.com/apps/google-drive/integrations#triggers-and-actions

Userlevel 1

Yes, in the file. Not the file name.

Userlevel 7
Badge +14

@mbernal3

NOTE: Zaps work when turned ON for new/updated data going forward.

 Try these Zap steps:

  1. Trigger: GDrive - New File
  2. Action: Filter
  3. Action: Formatter > Text > Replace
  4. Action: GDrive - Replace File

 

Userlevel 1

Thanks @Troy Tessalone - i need this to trigger for existing files, which wont work for what i am doing. Thanks for your response!

Userlevel 7
Badge +14

@mbernal3 

Try configuring a looping Zap using a GDrive Find File step: