new regex discovery - backreferences, v nice. eg:
sed -E 's/([0-9]+):([0-9]+$)/1,2/' - match numbers colon numbers and replace the colon with a comma. the parentheses (brackets) remember and can then be used again with 1 2 etc
« regex {n} | Main | ring vs tube »
new regex discovery - backreferences, v nice. eg:
sed -E 's/([0-9]+):([0-9]+$)/1,2/' - match numbers colon numbers and replace the colon with a comma. the parentheses (brackets) remember and can then be used again with 1 2 etc
This page contains a single entry from the blog
The previous post in this blog was regex {n}.
The next post in this blog is ring vs tube.
Many more can be found on the main index page or by looking through the archives.