in reply to Counting the start and end elements in a line
Syntax and quotemeta issues aside, this is kind of a meaningless check. Your code will accept </B>foo<B> which (presuming this is some form of (SG|X)ML) I'm guessing isn't at all valid (let alone well formed :). Perhaps another tool would be better suited for this?
|
|---|