Is there an easy way to remove all chars before a \"_\"? For example, change 3.04_somename.jpg to somename.jpg.
3.04_somename.jpg
somename.jpg
Any suggestions for where t
no need to do a replacement. the regex will give you what u wanted directly:
"(?<=_)[^_]*\.jpg"
tested with grep:
echo "3.04_somename.jpg"|grep -oP "(?<=_)[^_]*\.jpg" somename.jpg