2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 1191
/ 2 Years ago, thu, april 14, 2022, 12:46:40
So I have this pattern, the whole thing is one line
<img itemprop="image" class="hovered__image jsOpenGallery lazyload" data-src="//static.yellowpages.ca/ypca/ypui-6.65.0.0-20220419.0826/resources/images/serp/photo-gallery-icon.svg" alt="Drain King Plumbers - Plumbers & Plumbing Contractors"/><img itemprop="image" class="jsMerchantLogo lazyload" data-src="https://ssmscdn.yp.ca/image/resize/8bfbcba8-0a3e-48d3-b64b-16df5995779c/yp-serp-thumbnail/1.jpg" alt="Drain King Plumbers - Plumbers & Plumbing Contractors"/>
here I am using the expression "alt=" to find the tag and I need to get the name of the business after it like this from above code
alt="Drain King Plumbers - Plumbers & Plumbing Contractors"
The name can be anything, but it is always enclosed in " ". can I use grep to return something like alt="business name"
More From » command-line