http://qs321.pair.com?node_id=11135750


in reply to Re: Creating an abstract
in thread Creating an abstract

It's certainly more succinct and it behaves slightly differently. Your version includes the tag if it is to be split whereas mine removes it - this makes no difference to my application. It's taken me a little while to work out how the regexp works and I very much doubt I could write it for myself tomorrow...so probably not easily maintainable by me.

But certainly succinct and rather impressive :)

Replies are listed 'Best First'.
Re^3: Creating an abstract
by tybalt89 (Monsignor) on Aug 09, 2021 at 22:28 UTC

    Nope, mine removes the last tag if it's not closed.