Regular expression needed to extract image URLs from CSV file

  • Posted
  • Proposals 3
  • Remote
  • #669143
  • Awarded
Pawel D.
Dev S.L H. have already sent a proposal.
  • 0

Description

Experience Level: Entry
General information for the business: n/a
Description of requirements/functionality: General information for the business: n/a
Description of requirements/functionality: I have CSV files containing URLs to images. I need to extract ONLY the URLs relating to images.

What I had been using (very rudimentary) was:
egrep -o "http://.*.(jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF)" $input > $output

However, this no longer works for me.
Also, the image extensions is not a complete list.

The command is run as part of a bash script.

Example CSV attached.
Specific technologies required: to be run from linux bash script
OS requirements: Linux
Extra notes:
Specific technologies required: run from bash script
OS requirements: Linux
Extra notes:

New Proposal

Create an account now and send a proposal now to get this job.

Sign up

Clarification Board

    There are no clarification messages.