I'm trying to get Atom version in bash. Thid regex is working, but I need a substring from string, which giving grep. How can I get version from this string?
<span class="version">1.34.0</span>
curl https://atom.io/ | grep 'class="version"' | grep '[0-9]\+.[0-9]\+.[0-9]\+'
grep -oP "\d+\.\d+\.\d+"Oh and notice escaping the dot for a literal dot, otherwise it means any character.