You could have fooled me, as
[b] isn't HTML for bold (you did actually preview your post, did you?). Perhaps you mean you want to compare white space separated columns - use
split. Perhaps you mean you want to compare fixed width & fixed offset substring, use
substr. Perhaps you mean something else that cannot be easily determined from the examples given.
Being able to actually describe your problem means you're more than halfway to the solution.