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?
In reply to Re: Counting the start and end elements in a line
by Fletch
in thread Counting the start and end elements in a line
by rsriram
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |