RE, tags, and the newline
Posted: Wed Feb 19, 2003 6:18 pm
Basically, I want to find all pairs of lines which start with the same letter. So I tried
^\([[:alpha:]]\).*\n\1
but it tells me it's an invalid regular expression, which I'm pretty sure is due to the \n (I remove it and it works, even if it doesn't return what I want)
Anyone know why this would be, or how I can make it work?
^\([[:alpha:]]\).*\n\1
but it tells me it's an invalid regular expression, which I'm pretty sure is due to the \n (I remove it and it works, even if it doesn't return what I want)
Anyone know why this would be, or how I can make it work?