Re: exclude atom from being matched (multiple letters)

Thierry Blanc <[email protected]>
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
well, the case was a html parsing, it was not end of line.

here is the line where I wanted the do-not-match-dot-followed-by-spaces 
before the '<o:p>'

s/.*<b style="mso-bidi-font-weight: normal.*>([^<>][^<>]*)*[HERE NO DOT 
FOLLOWED BY ZERO OR MORE SPACES]*<o:p>.*/\\subsection*{\1}/

a not-the-following-atom syntax would be very handy ...


here is the solution I eventually used:

# subsection insert
/<b style="mso-bidi-font-weight: normal/{
/><o:p>/bsubsection
/\. *<o:p>/bsubsection
s/.*<b style="mso-bidi-font-weight: 
normal.*>([^<>][^<>]*)<o:p>.*/\\subsection*{\1}/
}
:subsection


On 09/05/13 11:15, Jim Hill wrote:
> Yes - /\. *$/! { /^foo/ d; }
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>



[Non-text portions of this message have been removed]
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.