Regular expression needed to extract image URLs from CSV file
- or -
Post a project like this3342
£6(approx. $7)
- Posted:
- Proposals: 3
- Remote
- #669143
- Awarded
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:
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:
Hamish R.
100% (32)Projects Completed
25
Freelancers worked with
17
Projects awarded
63%
Last project
2 Sep 2022
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies