I have an HTML file with thousands of lines, but something is repeated.
CODE=12345-ABCDE-12345-ABCDE</div>...<!--This line goes on for hundreds of characters-->
Now, The line starts with "CODE=" every time, and the length of the code is the same every time. The following 28 characters are either letters, numbers, or dashes.
cat mysite.html | grep "CODE="
But I'd like a regex to display everything on the line BEFORE</div>
Thanks!