'How can I make this regex relative URL extraction work in grep?
Have this string in a file and want to just extract the relative link:
<a href="/FreeCAD/FreeCAD-Bundle/releases/download/weekly-builds/FreeCAD_weekly-builds-28909-2022-05-20-conda-Linux-x86_64-py39.AppImage" rel="nofollow" data-skip-pjax>
This works in https://regexr.com/6m4vg :
/FreeCAD/[^]*AppImage
But returns nothing in grep.
grep -E '/FreeCAD/\[^]*AppImage' somefile
How can I make it work? Thanks.
Edit: source file:
wget https://github.com/FreeCAD/FreeCAD-Bundle/releases/tag/weekly-builds
Desired output:
/FreeCAD/FreeCAD-Bundle/releases/download/weekly-builds/FreeCAD_weekly-builds-28909-2022-05-20-conda-Linux-x86_64-py39.AppImage
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
