Re: Start and end of line anchors in middle of regexp

"[email protected] [sed-users]" <[email protected]>
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
<< No mention to ^ and $. This could perhaps be added. Are they 
 << other known differences between BRE and ERE?
 

 Yes, the GNU sed docs say nothing about ERE treatment of ^ and $. I wrote a book about sed, basically because the sed documentation and other learning resources are rather outdated and poor. In the course of writing the book, I did a LOT of research on sed and regular expressions. Yet I never discovered what you posted. I updated the web site related to the book to add what you found. It's the first correction to the book! I appreciate your finding it. 
 
I would add that BRE and ERE also treat '|' differently. With BRE '\|' is used. But '|' is used with ERE. Otherwise, I do not know any other differences between BRE and ERE. But this has gotten me thinking maybe there are some other differences lurking out there. 
 

 I have no idea about updating the GNU sed manual, but posting as you did might help bring that about. 
 
Thanks, 
Daniel 
 

 PS - I almost posted this to myself, even after my previous explanation. That yahoo interface IS unfriendly.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.